Simplifies a SPDX expression (including ones with sub-expressions) down to a list of license choices.
Перейти к файлу
William Bartholomew 28db869403
Move to spdx-expression-parse
2018-12-17 16:15:10 -08:00
lib Move to spdx-expression-parse 2018-12-17 16:15:10 -08:00
test Initial version 2016-05-24 22:42:19 -07:00
.gitignore Initial version 2016-05-24 22:42:19 -07:00
LICENSE Initial version 2016-05-24 22:42:19 -07:00
README.md Update README.md 2016-11-01 13:50:00 -07:00
package-lock.json Move to spdx-expression-parse 2018-12-17 16:15:10 -08:00
package.json Move to spdx-expression-parse 2018-12-17 16:15:10 -08:00

README.md

Version License Downloads

spdx-simplify

Simplifies a SPDX expression (including ones with sub-expressions) down to a list of license choices. Licenses that are OR'd together will be returned as-is and licenses that are AND'd together will be returned as MultipleLicenses.

Usage

var simplify = require('spdx-simplify');
var licenses = simplify('MIT OR BSD-2-Clause'); // Returns: ['MIT', 'BSD-2-Clause']

Contributing

Pull requests will gladly be considered!

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.