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

base62-random

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base62-random - npm Package Compare versions

Comparing version 0.2.0-1 to 0.2.0

7

index.js

@@ -21,2 +21,4 @@ 'use strict';

base62.test = isbase62
// Attach methods for tests to use
base62.generateBase62Math = generateBase62Math

@@ -107,3 +109,3 @@ base62.generateBase62Node = generateBase62Node

else {
throw new Error('Non-standard crypto library')
throw new Error('Non-standard crypto library')
}

@@ -114,2 +116,3 @@

function base62(length) {
if ( !length || typeof length !== 'number') throw new Error(`base62 length must be a number "${length}"`)
if ( str.length < (strIdx+length) ) generateBase62()

@@ -119,2 +122,2 @@ return str.slice(strIdx, (strIdx+=length))

})()
})()
{
"name": "base62-random",
"version": "0.2.0-1",
"version": "0.2.0",
"description": "Fast base62 random",

@@ -5,0 +5,0 @@ "main": "index.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