3.0.0 • Published 5 years ago

spdx-simplify v3.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

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.

3.0.0

5 years ago

0.1.0

8 years ago