Name: normalize-license-data
Owner: npm
Description: clean up licenses from package.json files and the npm registry
Created: 2015-04-02 02:32:47.0
Updated: 2018-01-22 18:45:51.0
Pushed: 2015-04-02 05:18:11.0
Homepage: http://npm.im/normalize-license-data
Size: 128
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
clean up licenses from package.json files and the npm registry
Download node at nodejs.org and install it, if you haven't already.
install normalize-license-data --save
normalize = require("normalize-license-data")
alize(null)
> null
alize('')
> null
alize('MIT')
> {name: 'MIT', url: 'http://opensource.org/licenses/MIT'}
alize('BSD')
> {name: 'BSD', url: 'http://opensource.org/licenses/BSD-2-Clause'}
alize('unfamiliar')
> {name: 'unfamiliar'}
alize({name: 'wtfpl', url: 'https:///wtfpl.net'})
> {name: 'wtfpl', url: 'https:///wtfpl.net'}
alize({type: 'wtfpl', url: 'https:///wtfpl.net'})
> {name: 'wtfpl', url: 'https:///wtfpl.net'}
alize('https://custom-license.com')
> {name: 'custom-license.com', url: 'https:///custom-license.com'}
install
test
_.clone
as a module.MIT
Generated by package-json-to-readme