Skip to content

Create unique IDs for slugs, passwords, and more with ease. Our package allows you to customize string length, include numbers, and special characters to fit your needs.

Notifications You must be signed in to change notification settings

sauraverse/npm-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

cst-unique-id (Generate Customizable Unique IDs)

Create unique IDs for slugs, passwords, and more with ease. Our package allows you to customize string length, include numbers, and special characters to fit your needs.

Prerequisites

This project requires NodeJS (version 8 or later), file-type Module and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.

$ npm -v && node -v
6.4.1
v8.16.0

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installation

BEFORE YOU INSTALL: please read the prerequisites

Start with cloning this repo on your local machine:

$ git clone https://github.com/sauraverse/npm-package.git
$ cd npm-package

To install and set up the library, run:

$ npm install -S cst-unique-id

Options

url

Type Default value(40characters unique str)
string 'E!wcDV%@Sh4Dd@KQm_5!?vNoQ@CjJUO@i3IuwB_%'

If present, the request will be performed as soon as the function is called

Example:

import genId from "cst-unique-id"

console.log(genId());         // Generates a 40-character password with numbers and special characters
console.log(genId(15));       // Generates a 15-character password with numbers and special characters
console.log(genId(15, false)); // Generates a 15-character password without numbers, but with special characters
console.log(genId(15, false, false)); // Generates a 15-character password without numbers and without special characters

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Add your changes: git add .
  4. Commit your changes: git commit -am 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. Submit a pull request 😎

Authors

About

Create unique IDs for slugs, passwords, and more with ease. Our package allows you to customize string length, include numbers, and special characters to fit your needs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published