1.3.1 • Published 9 months ago

random-code-getter v1.3.1

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

#Documentation installation

With NPM

npm i random-code-getter

With YEARN

yarn add random-code-getter

Example

import generator from 'random-code-getter'

generator.setConfig({
    expireIn: 5000,
    timeBased: true
})

// Generate a numeric string of length 6
const numericValue = generator.numeric({ length: 6 });
console.log(`Generated Numeric: ${numericValue}`);  // e.g., "123456"

// Generate a text string of length 8 (lowercase by default)
const textValue = generator.text({ length: 8 });
console.log(`Generated Text: ${textValue}`);  // e.g., "abcd1234"

// Generate a capitalized text string
const capitalizedTextValue = generator.text({ length: 8, capital: true });
console.log(`Generated Capitalized Text: ${capitalizedTextValue}`);  // e.g., "ABCD1234"
1.2.8

9 months ago

1.2.7

9 months ago

1.3.1

9 months ago

1.3.0

9 months ago

1.2.9

9 months ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.1.1

4 years ago

0.0.1

4 years ago