safe-license-list
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i safe-license-list

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

551 kB

Total Files

22

Last publish

Collaborators

  • fus1on