$ npm install normalize-license-dataclean up licenses from package.json files and the npm registry
Download node at nodejs.org and install it, if you haven't already.
npm install normalize-license-data --save
var normalize = require("normalize-license-data")
normalize(null)
// => null
normalize('')
// => null
normalize('MIT')
// => {name: 'MIT', url: 'http://opensource.org/licenses/MIT'}
normalize('BSD')
// => {name: 'BSD', url: 'http://opensource.org/licenses/BSD-2-Clause'}
normalize('unfamiliar')
// => {name: 'unfamiliar'}
normalize({name: 'wtfpl', url: 'https:///wtfpl.net'})
// => {name: 'wtfpl', url: 'https:///wtfpl.net'}
normalize({type: 'wtfpl', url: 'https:///wtfpl.net'})
// => {name: 'wtfpl', url: 'https:///wtfpl.net'}
normalize('https://custom-license.com')
// => {name: 'custom-license.com', url: 'https:///custom-license.com'}
npm install
npm test
_.clone as a module.MIT
Generated by package-json-to-readme