2.0.0 ā¢ Published 2 years ago
@ultirequiem/random-number v2.0.0
Random Number
Get a random number.
Usage
Deno š¦
import { randomNumber } from "https://deno.land/x/random_number/mod.ts";
randomNumber(); //=> 1 ... 100
randomNumber({ min: 10 }); //=> 10 ... 100
randomNumber({ min: 235, max: 239 }); //=> 235 ... 239
randomNumber({ integer: false }); //=> 0 ... 0.9
Node.js š¢
import { randomNumber } from "@ultirequiem/random-number";
Browser
You can use any CDN š„
Eg. ESM ā¶ SkyPack / script tag ā¶ JSDelivr.
The API is the same on all this platforms.
Documentation
Is hosted on Deno Doc š
CLI
Install
- Deno š
deno install https://deno.land/x/random_number/rnd.ts
- Node.js š¼
npm install -g @ultirequiem/random-number
Usage
rnd --help
A binary for multiple platforms is provided too!
Support
Open an Issue, I will check it a soon as possible š
If you want to hurry me up a bit send me a tweet š
Consider supporting me on Patreon if you like my work š
Don't forget to star the repo ā
Versioning
We use SemVer for versioning. For the versions available, see the tags.
Authors
Eliaz Bobadilla (a.k.a UltiRequiem) - Creator and Maintainer šŖ
See also the full list of contributors who participated in this project.
Licence
Licensed under the MIT License.