ministring

1.0.3 • Public • Published

Ministring

Random string generator built with JavaScript.

Install

npm i ministring

Usage

import the module.

const ministring = require('ministring');

By default, strings have a length of 5 characters, this can be changed by providing a number as the first argument like so:

ministring(6); // xPeB34

String can have multiple character types combined together. There are four character types:

  • Specials
  • Numbers
  • Lowercase
  • Uppercase

By default, strings will contain numbers, lowercase and uppercase characters. Provide the desired types in a string as the second argument to generate even more customized strings:

ministring(7, 'numbers'); // 2858259
ministring(7, 'uppercase'); // NZGRWQD

Combine all character types to get even more specific string combinations.

ministring(10, 'specials, numbers, lowercase, uppercase'); // !JUZs3AfTl

Contributing

Feel free to make pull requests and contribute to this project.

Package Sidebar

Install

npm i ministring

Weekly Downloads

6

Version

1.0.3

License

MIT

Unpacked Size

4.43 kB

Total Files

6

Last publish

Collaborators

  • mozetsu