takahirox / license-info-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

license-info-js

license-info-js is a JavaScript library that allows JavaScript applications to quickly know what a license allows.

Many contents are under a certain license. The license certifications are stated as natural language and are not machine readable. It is hard for applications to know what a content allows and disallows.

For example it can be a problem in this scenario: If a 3D asset file that is under a license that doesn't allow remix work is uploaded to a JavaScript 3D editor the editor shows the 3D asset but should refuse to edit it.

license-info-js resolves the problem by providing machine readable info from a license name or a license certificate URL.

Example

import licenseInfo from 'path_to_lib/license-info.js';

const info = licenseInfo.getByCertificateURL(licenseCertificateURL);
if (info.remix) {
  edit();
}

API

getByCertificateURL(certificateURL)

getByLicenseName(licenseName)

Info properties

  • attributionRequired:
  • remix:
  • commersialUse:
  • freeCulturalWorks:
  • redistribution:

Supported license list

Name Attribution required Remix culture Commersial use Free cultural works redistribution
CC0 No πŸ†— Yes πŸ†— Yes πŸ†— Yes πŸ†—
CC BY Yes β›” Yes πŸ†— Yes πŸ†— Yes πŸ†—
CC BY-SA Yes β›” Yes πŸ†— Yes πŸ†— Yes πŸ†—
CC BY-NC Yes β›” Yes πŸ†— No β›” No β›”
CC BY-NC-SA Yes β›” Yes πŸ†— No β›” No β›”
CC BY-ND Yes β›” No β›” Yes πŸ†— No β›”
CC BY-NC-ND Yes β›” No β›” No β›” No β›”

License list unsupported yet

Name Attribution required Remix culture Commersial use Free cultural works redistribution
Sketchfab Standard
Sketchfab Editorial
Turbo Squid 3D Model license
UVL
VN3

About

License:MIT License


Languages

Language:JavaScript 73.4%Language:HTML 26.6%