spdx-simplify

3.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i spdx-simplify

Weekly Downloads

5

Version

3.0.0

License

MIT

Unpacked Size

3.89 kB

Total Files

4

Last publish

Collaborators

  • microsoft1es