oss-license-name-to-url

1.2.1 • Public • Published

oss-license-name-to-url

Convert shorthand OSS license names to opensource.org URLs

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install oss-license-name-to-url --save

Usage

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/
 

Tests

npm install
npm test

Dependencies

Dev Dependencies

  • standard: JavaScript Standard Style
  • tap: A Test-Anything-Protocol library

License

MIT

Package Sidebar

Install

npm i oss-license-name-to-url

Weekly Downloads

884

Version

1.2.1

License

MIT

Last publish

Collaborators

  • isaacs
  • zeke