Provides a promise interface to RESTful-lenny bringing ( ͡° ͜ʖ ͡°) to your NodeJS projects!
Run npm install lenny-node-sdk
in the root folder of your project.
To use:
- require the module
const lenny = require('lenny-node-sdk');
- call either
lenny.lenny()
to request a lenny orlenny.random()
- A promise will be returned containing the lenny requested, or throwing a rejection
It's that simple!
Both calls optionally take in specific body parts, as well as a count:
lenny.lenny(null, 10)
generates ten lennieslenny.lenny({ ears: '<' })
generates < ͡° ͜ʖ ͡°<
The full list of body parts are available can be found on the RESTful lenny github page
NodeJS (version >= 6.x) npm (version >= 4.x)
Tests require NodeJS version >= 8.x.
To run tests:
npm test
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Casper Oakley - Github
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hats off to the lenny.today team for providing the RESTful lenny api