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

randomatic

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

randomatic - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

4

index.js

@@ -12,2 +12,3 @@ /*!

var typeOf = require('kind-of');
var mathRandom = require('math-random');

@@ -19,2 +20,3 @@ /**

module.exports = randomatic;
module.exports.isCrypto = !!mathRandom.cryptographic;

@@ -83,5 +85,5 @@ /**

while (length--) {
res += mask.charAt(parseInt(Math.random() * mask.length, 10));
res += mask.charAt(parseInt(mathRandom() * mask.length, 10));
}
return res;
};
{
"name": "randomatic",
"description": "Generate randomized strings of a specified length using simple character sequences. The original generate-password.",
"version": "2.0.0",
"version": "3.0.0",
"homepage": "https://github.com/jonschlinkert/randomatic",

@@ -12,3 +12,4 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"Jon Schlinkert (http://twitter.com/jonschlinkert)",
"Paul Miller (paulmillr.com)",
"Michael Rhodes (http://michaelrhod.es)",
"Paul Miller (https://paulmillr.com)",
"Rouven Weßling (www.rouvenwessling.de)",

@@ -34,3 +35,4 @@ "Sun Knudsen (https://sunknudsen.com)"

"is-number": "^4.0.0",
"kind-of": "^6.0.0"
"kind-of": "^6.0.0",
"math-random": "^1.0.1"
},

@@ -50,6 +52,6 @@ "devDependencies": {

"chars",
"generate",
"generate-password",
"numeric",
"password",
"generate",
"generate-password",
"rand",

@@ -56,0 +58,0 @@ "random",

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