https://github.com/codedotjs/kote-api
:books: Easily fetch Quote of the Day from sites like BrainyQuote and Eduro!
https://github.com/codedotjs/kote-api
Last synced: 6 months ago
JSON representation
:books: Easily fetch Quote of the Day from sites like BrainyQuote and Eduro!
- Host: GitHub
- URL: https://github.com/codedotjs/kote-api
- Owner: CodeDotJS
- License: mit
- Created: 2016-11-11T21:45:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-16T09:08:14.000Z (over 7 years ago)
- Last Synced: 2025-03-20T00:41:18.497Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kote-api [](https://travis-ci.org/CodeDotJS/kote-api)
> Easily fetch quote of the day from BrainyQuotes and Eduro.
## Install
```
$ npm install --save kote-api
```
## Usage
```js
'use strict';
const kote = require('kote-api');
kote.eduro().then(user => {
console.log(user);
// => { quote: 'Don’t cry because it’s over, smile because it happened.' }
});
kote.brainyQuote().then(quote => {
console.log(quote);
// { quote: 'Hope is but the dream of those wake.' }
});
// or
kote.brainyQuote('nature').then(quote => {
console.log(quote);
// { quote: A good garden may have some weeds. }
});
```
## API
- __`kote.brainyQuote()`__
- __`kote.brainyQuote(opts)`__
`opts`
- `love`
- `nature`
- `art`
- `funny`
__`Typeof`__
__`opts`__ `:` `string`
- __`kote.eduro()`__
## Related
- [`Kote`](https://github.com/CodeDotJS/kote) : `Daily injection of wisdom, fun and love through command line`
## License
MIT © [Rishi Giri](http://rishigiri.com)