@tyler-jm/bbkey
v1.0.0
Published
a bare-bones api to generate random strings. Useful for keys in React or Vue components
Downloads
2
Readme
bbkey
a bare-bones api to generate random strings made up of uppercase letters, lowercase letters, or nunerals.
Good for generating keys for React components or Vue components.
Installation
npm install @tyler-jm/bbkey
- in the .js file:
import bbkey from '@tyler-jm/bbkey';
- or:
const bbkey = require('@tyler-jm/bbkey;
Usage
Pass a number to the function, this will be the length of the string generated by the funtion:
bbkey(4)
would return something like: 4etw
bbkey(8)
would return something like: 5ekFsD8i
This is not intended for production purposes