Skip to content

Node bindings to the Open Source License API https://api.opensource.org

License

Notifications You must be signed in to change notification settings

OpenSourceOrg/node-opensource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

13 Commits

Repository files navigation

Node-opensource

Node-opensource is an API Wrapper that allows you to query the Open Source License API with Nodejs.

Example

constlicenses=require('node-opensource');// Get all known licenseslicenses.all(function(err,data){// Do something with data})// Get license from it's OSI IDlicenses.get("MIT",function(err,data){// Do something with data})// Get license from keywordlicenses.tagged("copyleft",function(err,data){// Do something with data})

Using Promises

constlicenses=require('node-opensource');// Get all known licenseslicenses.all().then(function(data){// Do something with data}).catch(function(error){// Error});// Get license from it's OSI IDlicenses.get("MIT").then(function(data){// Do something with data}).catch(function(error){// Error});// Get license from keywordlicenses.tagged("copyleft").then(function(data){// Do something with data}).catch(function(error){// Error});

Installing

npm install node-opensource 

About

Node bindings to the Open Source License API https://api.opensource.org

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •