normalize-license-data
clean up licenses from package.json files and the npm registry
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install normalize-license-data --save
Usage
var normalize = // => null // => null // => {name: 'MIT', url: 'http://opensource.org/licenses/MIT'} // => {name: 'BSD', url: 'http://opensource.org/licenses/BSD-2-Clause'} // => {name: 'unfamiliar'} // => {name: 'wtfpl', url: 'https:///wtfpl.net'} // => {name: 'wtfpl', url: 'https:///wtfpl.net'} // => {name: 'custom-license.com', url: 'https:///custom-license.com'}
Tests
npm installnpm test
Dependencies
- is_js: micro check library
- lodash.clone: The modern build of lodash’s
_.clone
as a module. - oss-license-name-to-url: Convert shorthand OSS license names to opensource.org URLs
- schemeless: Remove the parts of URLs that humans don't really need to see
Dev Dependencies
- code: assertion library
- mocha: simple, flexible, fun test framework
- package-json-to-readme: Generate a README.md from package.json contents
- standard: JavaScript Standard Style
License
MIT
Generated by package-json-to-readme