jslicense

Software licensing tools for the npm ecosystem.

Search npmjs.com for “jslicense”.

SPDX Expressions

var parse = require('spdx-expression-parse')
parse('(MIT OR GPL-2.0+)')

Licensing Your Work

npm install --global licensor
mkdir your-new-package
cd your-new-package
npm init
licensor

Checking Others’ Licenses

npm install --global licensee
cd your-package
licensee --init
licensee

“Official” License Texts

Texts can be require()’d as npm packages.

License Text JSON Templates

Templates conform to a schema.

Source &c.

On GitHub