npm-normalize-package-bin
Turn any flavor of allowable package.json bin into a normalized object
Last updated 2 years ago by npm-cli-ops .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm 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.1                                ...           latest (2 years ago)

5 Versions

  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Downloads
Today 0
This Week 5
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (0)
None
Dev Dependencies (3)

Copyright 2013 - present © cnpmjs.org | Home |