spdx-license-info
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

spdx-license-info

Information on SPDX license terms.

Uses SPDX License List version 3.21 - 2023-06-18

install

npm install spdx-license-info

usage

import { licenseIds } from 'spdx-license-info'

console.log(licenseIds.Unlicense)
//> {
//>   spdx: 'Unlicense',
//>   name: 'The Unlicense',
//>   attribution: false,
//>   linking: 'publicDomain',
//>   distribution: 'publicDomain',
//>   modification: 'publicDomain',
//>   sublicensing: 'publicDomain',
//>   patentGrant: false,
//>   privateUse: true,
//>   trademarkGrant: false,
//>   magnetUri: 'magnet:?xt=urn:btih:5ac446d35272cc2e4e85e4325b146d0b7ca8f50c&dn=unlicense.txt',
//>   isOsiApproved: true,
//>   url: 'https://unlicense.org/'
//> }

see types.d.ts for attribute definitions.

contributing

The project is in its infancy. Not for all licenses the full license info and its (desired) attributes are available.

Please edit data/licenseInfo.js after reading the license under the provided url and attribute the license info.

The final file is generated with npm run build.
Pull-Requests are welcome.

license

The Unlicense

/spdx-license-info/

    Package Sidebar

    Install

    npm i spdx-license-info

    Weekly Downloads

    0

    Version

    1.0.1

    License

    Unlicense

    Unpacked Size

    231 kB

    Total Files

    6

    Last publish

    Collaborators

    • spurreiter