Random.org API client library for JavaScript.
Why?
- Simple syntax.
- Response normalisation.
- Sensible defaults.
- Automatic request encoding.
- Works in NodeJS and in the browser.
Install
npm install rdo
Usage
const Rdo = require("rdo");
const random = new Rdo({ apiKey: "Some api key" });
random.integer({ min: 0, max: 10 }).then(console.log);
// 6
API
See the documentation.