iquotes
Get inspirational quotes
Introduction
API of inspirational >280 quotes (Carefully collected) with 3 category:
- Life (~160 quotes)
- Love (~100 quotes)
- Development (~20 quotes)
Install
$ npm install iquotes
Usage
const iquotes = require('iquotes');
iquotes.random();
API
.all(category: string = 'all'): object[]
Get list of all quotes by categories
iquotes.all('life');
iquotes.all();
.random(category: string = 'all'): object
Get random quotes from all quotes or by cagegories
iquotes.random();
iquotes.random('life');
.count(category: string = 'all'): number
Get number of all quotes or number of quotes by categories
iquotes.count();
iquotes.count('love');
.countDetail(): object[]
Get detail number of all categories
iquotes.countDetail();
.categories(): string[]
Get supported categories list
iquotes.categories();
Supported Categories
life
love
dev
(Development)all
- Default (If not provide any categories or provide all
)
Related
License
MIT © Kyoz