Convert shorthand OSS license names to opensource.org URLs
npm install oss-license-name-to-urlConvert shorthand OSS license names to opensource.org URLs
Download node at nodejs.org and install it, if you haven't already.
``sh`
npm install oss-license-name-to-url --save
`js
var url = require("oss-license-name-to-url")
url("apache 2") // http://opensource.org/licenses/Apache-2.0
url("apache-2") // http://opensource.org/licenses/Apache-2.0
url("bsd") // http://opensource.org/licenses/BSD-2-Clause
url("x11") // http://opensource.org/licenses/MIT
url("X11") // http://opensource.org/licenses/MIT
url("WTFPLv2") // http://www.wtfpl.net/about/
`
`sh``
npm install
npm test
- osi-licenses: id-name pairs of OSI-approved licenses
- standard: JavaScript Standard Style
- tap: A Test-Anything-Protocol library
MIT