use-safety
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

use-safety

The library for safety install from npm repository (artifactory et al.)

How to Use

npx use-safety --help

Fix dependencies (npm/lerna)

npx use-safety fix

Clean (npm/lerna)

npx use-safety clean [-m, --node-modules][-l, --package-lock][-a, --all]

Install packages (npm/lerna)

npx use-safety i
npx use-safety i moment

Add packages without install (npm/lerna)

npx use-safety add
npx use-safety add moment

Pass extra arguments to npm\lerna client by placing them after --

npm

npx use-safety i moment -- --save-dev

lerna

npx use-safety i -- --hoist
npx use-safety i moment -- --dev

Use .env configuration

NODE_TLS_REJECT_UNAUTHORIZED=0
USE_SAFETY_REGISTRY=https://registry.npmjs.org/
USE_SAFETY_USERNAME=user
USE_SAFETY_PASSWORD=pass
USE_SAFETY_AUTH=token       (for Basic Authentication)
USE_SAFETY_AUTH_TOKEN=token (for Bearer Authentication)
USE_SAFETY_ROOT_DIR=.
DEBUG=true

Package Sidebar

Install

npm i use-safety

Weekly Downloads

1

Version

1.0.7

License

ISC

Unpacked Size

743 kB

Total Files

49

Last publish

Collaborators

  • alexanderpo