An open API service indexing awesome lists of open source software.

https://github.com/cezaraugusto/nodejs-opensourceapi

Node API Bindings to the OSI License API.
https://github.com/cezaraugusto/nodejs-opensourceapi

licenses node nodejs npm npm-package opensource

Last synced: 2 months ago
JSON representation

Node API Bindings to the OSI License API.

Awesome Lists containing this project

README

        

Open Source Initiative

# nodejs-opensourceapi

[![npm version][npmimg]][npm]
[![Build Status][travisimg]][travis]
[![Downloads][downloadsimg]][downloads]
[![licenses cool][licensescool]][licensescoollink]

`nodejs-opensourceapi` is an API Wrapper that allows you to query the Open Source License API with NodeJS


## Installing (requires Node >= v0.10)

```
$ npm install --save nodejs-opensourceapi
```

## Example

```js
var licenses = require('nodejs-opensourceapi')

// List all licenses
licenses.all((result) => {
// ...something cool
})

// Find all licenses with keyword "copyleft"
licenses.tagged('copyleft', (result) => {
// ...something cool
})

// Get the GPL-3.0 license
licenses.get('GPL-3.0', (result) => {
// ...something cool
})
```

**For more usage information please refer [here][opensourceorg].**

## License

MIT © [Cezar Augusto](http://cezaraugusto.net)

[npmimg]: https://img.shields.io/npm/v/nodejs-opensourceapi.svg
[npm]: https://www.npmjs.org/package/nodejs-opensourceapi
[travisimg]: https://api.travis-ci.org/cezaraugusto/nodejs-opensourceapi.svg
[travis]: https://travis-ci.org/cezaraugusto/nodejs-opensourceapi
[downloadsimg]: https://img.shields.io/npm/dt/nodejs-opensourceapi.svg
[downloads]: https://nodei.co/npm/nodejs-opensourceapi
[licensescool]: https://img.shields.io/badge/licenses-cool-green.svg
[licensescoollink]: https://opensource.org/
[opensourceorg]: https://github.com/OpenSourceOrg/api/blob/master/doc/endpoints.md