Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

advanced-random

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

advanced-random - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

23

package.json
{
"name": "advanced-random",
"version": "1.0.3",
"description": "Module for getting random values from random.org",
"version": "2.0.0",
"description": "",
"main": "index.js",

@@ -9,11 +9,12 @@ "scripts": {

},
"keywords": [
"random"
],
"author": "unInstance",
"license": "MIT",
"dependencies": {
"request": "^2.81.0",
"request-promise": "^4.2.1"
}
"repository": {
"type": "git",
"url": "git+https://github.com/npm/deprecate-holder.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/npm/deprecate-holder/issues"
},
"homepage": "https://github.com/npm/deprecate-holder#readme"
}

@@ -1,63 +0,5 @@

Technically it is just wrapper for random.org API service.
# Deprecated Package
# Installation
```
npm install advanced-random
```
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
# Usage
### Simple usage example
```javascript
const random = require('advanced-random');
random.integerGenerator().then(console.log).catch(console.log);
random.sequenceGenerator().then(console.log).catch(console.log);
random.stringGenerator().then(console.log).catch(console.log);
random.quotaChecker().then(console.log).catch(console.log);
```
### Integer Generator
```javascript
//...
random.integerGenerator({
num: 15,
min: -1e8,
max: 148,
base: 16,
rnd: 'new'
}).then(console.log).catch(console.log);
```
### Sequence Generator
```javascript
//...
random.sequenceGenerator({
min: 1,
max: 2,
rnd: 'new'
}).then(console.log).catch(console.log);
```
### String Generator
```javascript
random.stringGenerator({
num: 1,
len: 19,
digits: 'on',
upperalpha: 'on',
loweralpha: 'on',
unique: 'on',
rnd: 'new'
}).then(console.log).catch(console.log);
```
### Quota Checker
```javascript
//...
random.quotaChecker({
ip: '127.0.0.1'
}).then(console.log).catch(console.log);
```
Visit https://www.random.org/clients/http/ for more detailed information.
Please contact support@npmjs.com if you have questions about this package.
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