diff options
author | isaacs <i@izs.me> | 2019-12-10 03:03:14 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2019-12-10 03:30:31 +0300 |
commit | 19ce061a2ee165d8de862c8f0f733c222846b9e1 (patch) | |
tree | ad92a87f5a7d1f16da7f912a7e37e2050f2525f2 /node_modules/npm-normalize-package-bin/README.md | |
parent | 0a0fdff3edca1ea2f0a2d87a0568751f369fd0c4 (diff) |
bin-links@1.1.5
Diffstat (limited to 'node_modules/npm-normalize-package-bin/README.md')
-rw-r--r-- | node_modules/npm-normalize-package-bin/README.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/npm-normalize-package-bin/README.md b/node_modules/npm-normalize-package-bin/README.md new file mode 100644 index 000000000..65ba316a0 --- /dev/null +++ b/node_modules/npm-normalize-package-bin/README.md @@ -0,0 +1,14 @@ +# npm-normalize-package-bin + +Turn any flavor of allowable package.json bin into a normalized object. + +## API + +```js +const normalize = require('npm-normalize-package-bin') +const pkg = {name: 'foo', bin: 'bar'} +console.log(normalize(pkg)) // {name:'foo', bin:{foo: 'bar'}} +``` + +Also strips out weird dots and slashes to prevent accidental and/or +malicious bad behavior when the package is installed. |