npm-normalize-package-bin
Turn any flavor of allowable package.json bin into a normalized object
Last updated 3 years ago by lukekarrys .
ISC · Repository · Bugs · Original npm
$ cnpm 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

  • 3.0.0                                ...           latest (3 years ago)

3 Versions

  • 2.0.0                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 1.0.1                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org