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

@chaitanyapotti/random-id

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chaitanyapotti/random-id

a random id generator

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
175
decreased by-4.89%
Maintainers
1
Weekly downloads
 
Created
Source

random-id

random id generator

Installation

npm install --save random-id

or with yarn

yarn add random-id

Usage

npm

var randomId = require('random-id');

// length of the id (default is 30)
var len = 30;

// pattern to determin how the id will be generated
// default is aA0 it has a chance for lowercased capitals and numbers
var pattern = 'aA0'

var id = randomId(len, pattern)

using it in a script tag it'll add randomId to the window for global use

// length of the id (default is 30)
var len = 30;

// pattern to determin how the id will be generated
// default is aA0 it has a chance for lowercased capitals and numbers
var pattern = 'aA0'

var id = randomId(len, pattern)

FAQs

Package last updated on 04 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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