GithubHelp home page GithubHelp logo

kdkchy / random-string-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

generate a random string, by alphabetic, and or numeric, that can also determine the length of it

JavaScript 100.00%
hacktoberfest hacktoberfest2022

random-string-generator's Introduction

string-random-generator

desc

we can create a random string with this package. Built with simple javascript function Math.floor(Math.random() ...) and you can random all things, like alphabet, number, and symbol. You can also give a parameter that will random by this package!

installation

npm i string-random-generator

import

const randomString = require('string-random-generator')

you also can import only one function in it

const { doNumber } = require('string-random-generator)

time to play

console.log(randomString.allRandom(5)) // will print 5 random string : {)FVN

what can you do

function parameter example result
allRandom (int) randomString.allRandom(5) 1pO[. // generated 5 char
doNumber (int) doNumber(5) 41802
doUpper (int) doUpper(5) JSOPQ
doLower (int) doLower(5) dqmfi
doSym (int) doSym(5) (@:!0
customInput (int, string) ...(5, 'qwerty') ttweq
customRandom (int, object) ...(5, { upperc: true, lowerc: true, num: true, sym: false }) wR5r2

random-string-generator's People

Contributors

kdkchy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.