use-safety

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

Usage no npm install needed!

<script type="module">
  import useSafety from 'https://cdn.skypack.dev/use-safety';
</script>

README

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