restful-lenny-nodejs-wrapper

1.0.1 • Public • Published

RESTful Lenny NodeJS Wrapper Build Status

Provides a promise interface to RESTful-lenny bringing ( ͡° ͜ʖ ͡°) to your NodeJS projects!

Getting Started

Clone the repo into your project's node_modules folder and include the library as you would any other NodeJS NPM.

Usage

To use:

  • require the module const lenny = require('restful-lenny-nodejs-wrapper');
  • call either lenny.lenny() to request a lenny or lenny.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 lennies
  • lenny.lenny({ ears: '<' }) generates < ͡° ͜ʖ ͡°<

The full list of body parts are available can be found on the RESTful lenny github page

Prerequisites

NodeJS (version >= 6.x) npm (version >= 4.x)

Running the tests

Tests require NodeJS version >= 8.x.

To run tests:

npm test

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hats off to the lenny.today team for providing the RESTful lenny api

Readme

Keywords

Package Sidebar

Install

npm i restful-lenny-nodejs-wrapper

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • casperoakley