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

secure-random-string

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

secure-random-string - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

3

lib/secure-random-string.js

@@ -34,2 +34,5 @@ var crypto = require('crypto');

}
if (string.length < length) {
throw new Error(`Generated string is too short. Please catch this Error and try again.`);
}
return string.substr(0, length);

@@ -36,0 +39,0 @@ }

2

package.json
{
"name": "secure-random-string",
"version": "1.1.2",
"version": "1.1.3",
"description": "Generates a secure random string with a given length",

@@ -5,0 +5,0 @@ "main": "lib/secure-random-string.js",

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