Options
All
  • Public
  • Public/Protected
  • All
Menu

random-advice

API Wrapper for https://api.adviceslip.com

NPM version NPM downloads Dependencies

NPM info

Features

  • Actually maintained
  • Uses async/await

Install

yarn add random-advice

Documentation

https://shukaaku.github.io/random-advice

Usage

const { Advice } = require('random-advice');

(async () => {
    Advice.getAdvice(); // returns a string
    Advice.getRaw(); // returns the raw response
})();

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

random-advice © 1chiSensei, Released under the Apache-2.0 License.
Authored and maintained by 1chiSensei.

GitHub @1chiSensei

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.