2.1.10 • Published 10 months ago

node-fred v2.1.10

Weekly downloads
25
License
MIT
Repository
github
Last release
10 months ago

node-fred ·

build status npm version Coverage Status

A Fred2 API wrapper

The Fred API

Official Documentation

Wrapper Documentation

Installation Instructions

npm install node-fred --save

Example

Using Promises

import Fred from 'node-fred';

const fred = new Fred(API_KEY);

function getCategory(categoryID) {
    fred.categories
        .getCategory(125)
        .then((res) => {
            console.log('Category', res);
        })
        .catch((err) => {
            console.error('Error', err);
        });
}
getCategory(125);

Using async/await

import Fred from 'node-fred';

const fred = new Fred(API_KEY);

async function getCategory(categoryID) {
    try {
        const category = await fred.categories.getCategory(categoryID);
        console.log('Category', res);
    } catch (err) {
        console.error('Error', err);
    }
}
getCategory(125);
2.1.9

10 months ago

2.1.10

10 months ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6-beta.1

4 years ago

2.1.6-beta.2

4 years ago

2.1.6

4 years ago

2.1.5

5 years ago

2.0.14

7 years ago

2.0.13

7 years ago

2.0.12

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago