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

randomatic

Package Overview
Dependencies
Maintainers
1
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 1.1.0 to 1.1.1

LICENSE

9

index.js
/*!
* randomatic <https://github.com/jonschlinkert/randomatic>
*
* This was originally inspired by <http://stackoverflow.com/a/10727155/1267639>
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License (MIT)
*
* Many changes have been made, but this was originally
* inspired by <http://stackoverflow.com/a/10727155/1267639>
*/

@@ -61,3 +59,3 @@

if(typeOf(length) === 'object' && length.hasOwnProperty('chars')) {
if (typeOf(length) === 'object' && length.hasOwnProperty('chars')) {
options = length;

@@ -83,6 +81,5 @@ pattern = options.chars;

while (length--) {
res += mask.charAt(parseInt(Math.random() * mask.length));
res += mask.charAt(parseInt(Math.random() * mask.length, 10));
}
return res;
};
{
"name": "randomatic",
"description": "Generate randomized strings of a specified length, fast. Only the length is necessary, but you can optionally generate patterns using any combination of numeric, alpha-numeric, alphabetical, special or custom characters.",
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/jonschlinkert/randomatic",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"repository": {
"type": "git",
"url": "https://github.com/jonschlinkert/randomatic.git"
},
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"repository": "jonschlinkert/randomatic",
"bugs": {
"url": "https://github.com/jonschlinkert/randomatic/issues"
},
"license": {
"type": "MIT",
"url": "https://github.com/jonschlinkert/randomatic/blob/master/LICENSE-MIT"
},
"license": "MIT",
"scripts": {
"test": "mocha -R spec"
"test": "mocha"
},

@@ -29,10 +20,11 @@ "main": "index.js",

"dependencies": {
"is-number": "^1.1.0",
"kind-of": "^1.0.0"
"is-number": "^2.0.2",
"kind-of": "^2.0.1"
},
"devDependencies": {
"benchmarked": "^0.1.3",
"chalk": "^0.5.1",
"glob": "^4.3.5",
"should": "^4.4.1"
"ansi-bold": "^0.1.1",
"benchmarked": "^0.1.4",
"chalk": "^1.1.1",
"glob": "^5.0.15",
"should": "*"
},

@@ -39,0 +31,0 @@ "keywords": [

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