You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

random-web-token

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

random-web-token

It is a fast and easy token generator

1.1.0
unpublished
Source
npmnpm
Version published
Weekly downloads
39
-58.51%
Maintainers
1
Weekly downloads
 
Created
Source

random-web-token

Generate a token easily

Installation

npm install random-web-token

Normal Usage

const token = require("random-web-token");

console.log(token.generate("medium", 50))

Sample: returns with 50length token -> sHF3p8zZCTdAmJ0cyS60NK9RRPXi6NQ42zdUbigMBZYZY0504H

Promise Usage

same as before, but returns with promise

token.promiseGenerate("medium", 50)

Parameter help

all functions has 2 parameters

first parameter is a string

  • "normal" ---> token generated with lowercase and numbers
  • "medium" ---> token generated with lowercase + uppercase and numbers
  • "extra" ---> token generated with lowercase + uppercase + numbers and accented characters

second parameter is a number, this tells you the length of the token

Number Token generator

function has one parameter is a number, this tells you the length of the Number token

token.numberGenerate(10)

Sample: returns with 10length Number token -> 1368248387

Keywords

random

FAQs

Package last updated on 12 Jun 2021

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