unique-random
Advanced tools
Comparing version 0.1.1 to 1.0.0
{ | ||
"name": "unique-random", | ||
"version": "0.1.1", | ||
"version": "1.0.0", | ||
"description": "Generate random numbers that are consecutively unique", | ||
@@ -21,5 +21,4 @@ "keywords": [ | ||
"files": [ | ||
"unique-random.js" | ||
"index.js" | ||
], | ||
"main": "unique-random", | ||
"repository": "sindresorhus/unique-random", | ||
@@ -33,4 +32,4 @@ "scripts": { | ||
"engines": { | ||
"node": ">=0.8.0" | ||
"node": ">=0.10.0" | ||
} | ||
} |
@@ -10,23 +10,9 @@ # unique-random [![Build Status](https://travis-ci.org/sindresorhus/unique-random.svg?branch=master)](https://travis-ci.org/sindresorhus/unique-random) | ||
Download [manually](https://github.com/sindresorhus/unique-random/releases) or with a package-manager. | ||
```bash | ||
```sh | ||
$ npm install --save unique-random | ||
``` | ||
```bash | ||
$ bower install --save unique-random | ||
``` | ||
```bash | ||
$ component install sindresorhus/unique-random | ||
``` | ||
## Usage | ||
Generate a random number between 1 and 10. | ||
### Node.js | ||
```js | ||
@@ -38,15 +24,3 @@ var rand = require('unique-random')(1, 10); | ||
### Bower | ||
```html | ||
<script src="bower_components/unique-random/unique-random.js"></script> | ||
``` | ||
```js | ||
var rand = uniqueRandom(1, 10); | ||
console.log(rand(), rand(), rand()); | ||
//=> 5 2 6 | ||
``` | ||
## API | ||
@@ -61,2 +35,2 @@ | ||
[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com) | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
1507
8
34
1