2.1.10 • Published 2 years ago
node-fred v2.1.10
node-fred ·
A Fred2 API wrapper
The Fred API
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
2 years ago
2.1.10
2 years ago
2.1.8
2 years ago
2.1.7
2 years ago
2.1.6-beta.1
5 years ago
2.1.6-beta.2
5 years ago
2.1.6
5 years ago
2.1.5
6 years ago
2.0.14
8 years ago
2.0.13
8 years ago
2.0.12
8 years ago
2.0.9
8 years ago
2.0.8
8 years ago
2.0.7
8 years ago
2.0.4
8 years ago
2.0.3
8 years ago
2.0.2
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago