Socket
Book a DemoInstallSign in
Socket

random-var-generetor

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-var-generetor

This package is used to generete random variable and password of any length , any type and different formats.

1.1.7
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Random Variables and password Generetor

This package is used to generete random variable and password of any length , any type and different formats.

Installation

Install :- npm i random-var-generetor

Usage

Function nameDescription
randomString(length , VPype)Generete random varaibles.
passwordGeneretor(length , PType)Generete password of all types

Arguments and it's usage

  • length : length of random variable/password

  • vType : type of random variable (optional, default type is alnumsp)

    • string : only chars in random variable
    • number : only number in random variable
    • alnum : alphabets and numbers in random variable
    • alnumsp : alphabets ,numbers and special characters in random variable
  • PType : type of password (optional default type is moderate)

    • weak : weak password consists of ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
    • moderate : moderate password consists of ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
    • strong : strong password consists of ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()?><|}{+~!

Sample Code

import RandomVarGeneretor from 'random-var-generetor'; console.log(RandomVarGeneretor.randomString(length , type)) // replace length with integer console.log(RandomVarGeneretor.passwordGeneretor(length , type)) // replace length with integer

Keywords

random

FAQs

Package last updated on 25 Mar 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.