🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

string-generator-js

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

string-generator-js

Pure javascript library to help you create random strings.

latest
Source
npmnpm
Version
2.0.2
Version published
Maintainers
1
Created
Source

Library to help you create random strings.

Latest update

  • Make strings more randomize by adding numbers to it
  • option to configure type of string as numbers, alphabets or both

Installation and Usage

Server-side usage

Install the library with

npm install --save string-generator-js

let generator = require('string-generator-js');
const options = {length:5}
const code = generator.generate(options)

this will create the random string with the length of 5 :-

console.log(code)

/*
       pnfbF
*/

Options

Options accept following values

ParameterTypeDefaultAccept
lengthNumber10Any number
typeStringbothnumbers, alphabets, both

ABOUT :-

this package is in its initial age so you may face some bugs and difficulties by using this but i am intresterd to know about your thoughts regarding this package so i can develop it more further and i hope that some of you may interested helping me with this package and give me new ideas that help me building this more further.

you can mail me your reviews and idea to my gmail account aliasgherbadshah128@gmail.com

Keywords

javascript

FAQs

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