Node-opensource is an API Wrapper that allows you to query the Open Source License API with Nodejs.
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});npm install node-opensource 