1.5.2 • Published 2 years ago

osi-license-checker v1.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

osi-license-checker

Answers the question: "Is this License an approved license by OSI?"

Based heavily on https://github.com/myrne/osi-licenses.

Setup

Just install it:

npm i osi-license-checker
yarn add osi-license-checker

Usage

checkForShorthand()

Checks whether the provided string is an exact match to an SPDX License Identifier.

import { checkShorthand } from 'osi-license-checker';

console.log(checkShorthand("MIT")); // => true
console.log(checkShorthand("Proprietary")); // => false

checkFullName()

Checks whether the provided string is an exact match to a full name of an OSI-approved license.

import { checkFullName } from 'osi-license-checker';

console.log(checkFullName("MIT")); // => false
console.log(checkFullName("MIT License")); // => true
1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago