safe-pm

NPM Safety and Automation

Usage no npm install needed!

<script type="module">
  import safePm from 'https://cdn.skypack.dev/safe-pm';
</script>

README

Safe-PM

By Matthew Perlman and Rafayel Amirkhanyan


Why You Should Use Safe-PM?

As frequent node.js and NPM users, we always come accross the problem of installing dependencies in the incorrect directory, and having moments before we realize. So we made a small automation tool that wraps around node.js and helps prevent such small but annoying mistakes.


How To Install


npm install safe-pm

Only Supports Bash and ZSH


Commands

  • Help
  • Init
  • Install
  • Uninstall
  • Reset

Help

safe-pm help

Description

Lists all commands


Init

safe-pm init or safe-pm -y

Description

Initiliazes a package.json. Use -y to use NPM's default package.json template.


Install

safe-pm install <package-name> or safe-pm i <package-name>

Description

Installs dependency using NPM. Checks if package.json is present so that user does not install dependency in a wrong directory


Uninstall

safe-pm uninstall <package-name> or safe-pm ui <package-name>

Uninstalls dependency using NPM


Reset

safe-pm reset

Description

Deletes package.json, package-lock.json, and node_modules from current directory