kiruthiga 55473b7e7c initial push 6 dní pred
..
.github 55473b7e7c initial push 6 dní pred
test 55473b7e7c initial push 6 dní pred
.npmignore 55473b7e7c initial push 6 dní pred
LICENSE 55473b7e7c initial push 6 dní pred
README.md 55473b7e7c initial push 6 dní pred
index.js 55473b7e7c initial push 6 dní pred
package-lock.json 55473b7e7c initial push 6 dní pred
package.json 55473b7e7c initial push 6 dní pred

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.