the-noun-project

Node.js wrapper for The Noun Project's API

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
the-noun-project
4942.1.04 years ago8 years agoMinified + gzip package size for the-noun-project in KB

Readme

The Noun Project
npm version Build Status
Node.js wrapper for The Noun Project's API

Installation

Simply add to your project with ````bash npm install --save the-noun-project ````
In your project file: ````javascript var NounProject = require('the-noun-project'), nounProject = new NounProject({
key: 'foo',
secret: 'bar'
}); ```` You can get your keys from The Noun Project developer's page.

Usage

See The Noun Project API Explorer for more information on the endpoints available.
The query string options object is optional and can be omitted. See the tests for more information.
````javascript nounProject.getIconsByTerm('goat', {limit: 5}, function (err, data) {
if (!err) {
    console.log(data.icons);
}
}); ```` or ````javascript nounProject.getIconsByTerm('goat', function (err, data) {
if (!err) {
    console.log(data.icons);
}
}); ````