• Home
Name
Date
Size
#Lines
LOC

..--

.github/12-May-2024-32

test/12-May-2024-254224

.npmignoreD12-May-2024282 2523

LICENSED12-May-2024739 1612

README.mdD12-May-2024398 1510

index.jsD12-May-20241.3 KiB6146

package-lock.jsonD12-May-2024117.3 KiB3,5303,529

package.jsonD12-May-20241.7 KiB5857

README.md

1# npm-normalize-package-bin
2
3Turn any flavor of allowable package.json bin into a normalized object.
4
5## API
6
7```js
8const normalize = require('npm-normalize-package-bin')
9const pkg = {name: 'foo', bin: 'bar'}
10console.log(normalize(pkg)) // {name:'foo', bin:{foo: 'bar'}}
11```
12
13Also strips out weird dots and slashes to prevent accidental and/or
14malicious bad behavior when the package is installed.
15