New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

smart-id

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-id

generate smart random id

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

##smart-id

Generate random string for you.

NPM

###Installation

npm install smart-id

###Get started

var smartId = require("smart-id");
var id = smartId.make(); // will make a random string like: mYcAEQExvm

###Api

smartId.make(mode, length)

mode is a string, it can be:

  • a stands for use only lowercase characters a-z.
  • A stands for use only uppercase characters A-Z.
  • 0 stands for use only numbers 0-9.
  • _ stands for add _ to candidate characters, can take more than one like $%^&*_.
  • all before can be used at the same time, like aA0_ means the candidate is a-z, A-Z, 0-9 and _.
  • s is special, it stands for smart mode, this will trim confused characters like 0, o and O.
  • default mode is aA0.
  • default length is 10.

Keywords

util

FAQs

Package last updated on 19 Aug 2015

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