npm/normalize-license-data

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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.

install normalize-license-data --save
Usage
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'}
Tests
install
test
Dependencies
Dev Dependencies
License

MIT

Generated by package-json-to-readme


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.