/ archiveofbelonging.org / back / node_modules / npm-normalize-package-bin /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/2 years ago -  
[   ]LICENSE40 years ago739 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
[TXT]README.md40 years ago398 f12eb36 documentaiton updates [كارل مبارك]
[   ]index.js40 years ago1.3K 
[   ]package-lock.json40 years ago117K 
[   ]package.json2 years ago1.7K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
README.md

npm-normalize-package-bin

Turn any flavor of allowable package.json bin into a normalized object.

API

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.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80