npm-normalize-package-bin
Advanced tools
Weekly downloads
Changelog
Readme
Turn any flavor of allowable package.json bin into a normalized object.
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.
FAQs
Turn any flavor of allowable package.json bin into a normalized object
The npm package npm-normalize-package-bin receives a total of 11,052,000 weekly downloads. As such, npm-normalize-package-bin popularity was classified as popular.
We found that npm-normalize-package-bin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.