npm-normalize-package-bin
Turn any flavor of allowable package.json bin into a normalized object
Last updated 7 months ago by GitHub Actions .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install npm-normalize-package-bin 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 6.0.0                                ...           latest (7 months ago)

8 Versions

  • 6.0.0                                ...           7 months ago
  • 5.0.0                                ...           a year ago
  • 4.0.0                                ...           2 years ago
  • 3.0.1                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Downloads
Total 16
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE