Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

microsoft/spdx-simplify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simplifies a SPDX expression (including ones with sub-expressions) down to a list of license choices.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published