@mars/the-noun-project
Node.js wrapper for The Noun Project's API
Last updated 2 years ago by mars .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mars/the-noun-project 
SYNC missed versions from official npm registry.

The Noun Project

npm Module

Node.js wrapper for The Noun Project's API

Installation

Simply add to your project with

npm install --save @mars/the-noun-project

In your project file:

var NounProject = require('@mars/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.

nounProject.getIconsByTerm('goat', {limit: 5}, function (err, data) {
    if (!err) {
        console.log(data.icons);
    }
});

or

nounProject.getIconsByTerm('goat', function (err, data) {
    if (!err) {
        console.log(data.icons);
    }
});

Current Tags

  • 2.1.0                                ...           latest (2 years ago)

1 Versions

  • 2.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |