New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

unique-random

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unique-random - npm Package Compare versions

Comparing version 0.1.1 to 1.0.0

index.js

7

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc