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

get-short-id

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-short-id - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

index.js

@@ -1,2 +0,2 @@

const {nanoid} = require('nanoid');
const {customAlphabet} = require('nanoid');

@@ -8,5 +8,5 @@ function getId(prefix, chars) {

// https://zelark.github.io/nano-id-cc/
return prefix + nanoid(chars, 24);
return prefix + (customAlphabet(chars, 24)());
}
module.exports = getId;
{
"name": "get-short-id",
"version": "1.0.4",
"version": "1.0.5",
"description": "Random ID generator function with options to provide prefix and character set. Uses nanoid(23) as random string source.",

@@ -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