randomizedid

1.0.6 • Public • Published

Table of contents

General info

You can get custom and random identifiers for your data with no length limit and other interesting features.

Technologies

Project is created with:

  • Javascript

Quickstart

To create a random ID...

1. Install

npm install randomizedid

2. Create a ID

const randomizedid = require('randomizedid');
randomizedid(); // ⇨ 'xIHJfPrCEm'

Examples

randimizedid() // ⇨ 'xIHJfPrCEm' To get 10 random characters

randimizedid(25)// ⇨ 'LUuBXRtyO0APurPL52hoU45D7' To get customized length of characters

randomizedid(29, 5) // ⇨ '71IhP-blAzp-QRhLA-qxOuB-DRKaH' To get customized lenght of characters and interspersed by dashes every n (second argument) characters

randomizedid(29, 5, '_') // ⇨ '71IhP_blAzp_QRhLA_qxOuB_DRKaH' "e added a third parameter that serves to select the separator of the string, which can be either '-' or '_'

Social Media

Follow me (:

Instagram @jarregui92

Linkedin @jarregui92

Github @jarregui92

Readme

Keywords

none

Package Sidebar

Install

npm i randomizedid

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

3.99 kB

Total Files

4

Last publish

Collaborators

  • jarregui92