GithubHelp home page GithubHelp logo

moritzruth-archive / spdx-license-data Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.18 MB

๐Ÿ“ƒ Open Source licenses as JSON

License: Other

JavaScript 100.00%
spdx spdx-licenses open-source json-api data

spdx-license-data's Introduction

spdx-license-data

Open Source licenses as JSON

The data is automatically fetched from these repositories every day:

The information is then merged and committed into the repository if changes were made.

Data

License objects have the following fields:

  • id โ€” Short identifier specified by spdx.org/licenses
  • title โ€” The license name specified by spdx.org/licenses
  • description โ€” A human-readable description of the license
  • howToUse โ€” Instructions on how to implement the license
  • note โ€” Additional information about the licenses
  • isOsiApproved โ€” Whether this license is OSI approved
  • isFsfLibre โ€” Whether this license complies with the definition of free software by the FSF
  • permissions (array, see below)
  • conditions (array, see below)
  • limitations (array, see below)
  • text โ€” The license text with [placeholders]:
    • [fullname] โ€” The full name or username of the copyright owner
    • [login] โ€” The copyright owner's username
    • [email] โ€” The copyright owner's primary email address
    • [project] โ€” The project name
    • [description] โ€” The description of the project
    • [year] โ€” The current year
    • [projecturl] โ€” The repository URL or other project website

Permissions

  • commercial-use โ€” The software and derivatives may be used for commercial purposes.
  • modifications โ€” The software may be modified.
  • distribution โ€” The software may be distributed.
  • private-use โ€” The software may be used and modified in private.
  • patent-use โ€” The license provides an express grant of patent rights from contributors.

Conditions

  • include-copyright โ€” A copy of the license and copyright notice must be included with the software.
  • include-copyright--source โ€” A copy of the license and copyright notice must be included with the software in source form, but is not required for binaries.
  • document-changes โ€” Changes made to the code must be documented.
  • disclose-source โ€” Source code must be made available when the software is distributed.
  • network-use-disclose โ€” Users who interact with the software via network are given the right to receive a copy of the source code.
  • same-license โ€” Modifications must be released under the same license when distributing the software. In some cases a similar or related license may be used.
  • same-license--file โ€” Modifications of existing files must be released under the same license when distributing the software. In some cases a similar or related license may be used.
  • same-license--library โ€” Modifications must be released under the same license when distributing the software. In some cases a similar or related license may be used, or this condition may not apply to works that use the software as a library.

Limitations

  • trademark-use โ€” The license explicitly states that it does NOT grant trademark rights, even though licenses without such a statement probably do not grant any implicit trademark rights.
  • liability โ€” The license includes a limitation of liability.
  • patent-use โ€” The license explicitly states that it does NOT grant any rights in the patents of contributors.
  • warranty โ€” The license explicitly states that it does NOT provide any warranty.

Files

All files are located in the data directory.

  • licenses.json โ€” An array of all license objects without the text field.
  • licenses.full.json โ€” An array of all license objects.
  • license-names.json โ€” An array of all license IDs.
  • licenses/[id].json โ€” The license object for [id] without the text field.
  • licenses/[id].txt โ€” The license text for [id].
  • licenses/[id].full.json โ€” The license object for [id].

They are served under https://license-data.moritzruth.de.

Example: To access data/licenses/0BSD.json, use https://license-data.moritzruth.de/licenses/0BSD.json

NPM

npm

npm install spdx-license-data
# or
yarn add spdx-license-data

Usage:

import licenses from "spdx-license-data"

console.log(`There are ${licenses.length} licenses.`)
console.log(`Title of the AFL-3.0 license: ${licenses.find(license => license.id === "AFL-3.0").title}`)

License

See LICENSE.

spdx-license-data's People

Contributors

moritzruth avatar

Watchers

 avatar

spdx-license-data's Issues

Website displayed on README gives error 404.

As title says, the URL on the README which hosts the json files gives error 404.
I can take all the files on the data directory of the library but i would prefer to fetch them online in any moment.
The URL you provided is https://license-data.moritzruth.de/ .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.