# safe-pm

> NPM Safety and Automation

Latest version **1.0.0** (published 2021-05-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install safe-pm
pnpm add safe-pm
yarn add safe-pm
bun add safe-pm
```

Provides the command `safe-pm`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-05-20 |
| First published | 2021-05-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.12.* |
| Dependencies | 6 |
| Unpacked size | 11.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | yes |
| GitHub stars | 2 |
| Author | Matthew Perlman |
| Maintainers | mattperlscode |
| Keywords | safe-pm, mistake, correction, cli, wrapper, npm++, package, manager, safe, pm, safety, automation, scripting, mattperls-code, gitter499 |

## Links

- npm: https://www.npmjs.com/package/safe-pm
- Repository: https://github.com/mattperls-code/safe-pm
- Issues: https://github.com/mattperls-code/safe-pm
- npm.io page: https://npm.io/package/safe-pm

## Dependencies (6)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [figlet](https://npm.io/package/figlet.md) ^1.5.0
- [prompt](https://npm.io/package/prompt.md) ^1.1.0
- [process](https://npm.io/package/process.md) ^0.11.10
- [colorette](https://npm.io/package/colorette.md) ^1.2.2
- [child_process](https://npm.io/package/child_process.md) ^1.0.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-05-20

## README

# **Safe-PM**

By Matthew Perlman and Rafayel Amirkhanyan

<br/>

## 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.

<br/>

## **How To Install**

<br/>

> `npm install safe-pm`

Only Supports Bash and ZSH

<br/>

# Commands
- Help
- Init
- Install
- Uninstall
- Reset

<br/>

## **Help**

> `safe-pm help`

**Description**

Lists all commands

<br/>

## **Init**

> `safe-pm init` or `safe-pm -y`

**Description**

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

<br/>

## **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

<br/>

## **Uninstall**

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


Uninstalls dependency using NPM

<br/>

## **Reset**

> `safe-pm reset`

**Description**

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

---
_Source: https://npm.io/package/safe-pm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
