0.1.2 • Published 11 months ago

safe-license-list v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

safe-license-list

This library provides type-safe license data from the github/choosealicense.com repository.

Install

npm install safe-license-list

Usage

import { licenses } from "safe-license-list";

console.log(licenses);
import { getLicenseFromId } from "safe-license-list";

const mit = getLicenseFromId("MIT", false);

console.log(mit);

/*
{
  title: 'MIT License',
  featured: true,
  hidden: false,
  description: 'A short and simple...',
  how: 'Create a text file...',
  using: {
    Babel: 'https://github.com/babel/babel/blob/master/LICENSE',
    '.NET': 'https://github.com/dotnet/runtime/blob/main/LICENSE.TXT',
    Rails: 'https://github.com/rails/rails/blob/master/MIT-LICENSE'
  },
  permissions: [ 'commercial-use', 'modifications', 'distribution', 'private-use' ],
  conditions: [ 'include-copyright' ],
  limitations: [ 'liability', 'warranty' ],
  body: 'MIT License\nCopyright (c) [year] [fullname]...',
  id: 'MIT'
}
*/

License

MIT

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago