1.0.2 • Published 30 days ago

rkey v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
30 days ago

npm version install size npm downloads

RKey

Library for create random unique key. You can use it in ECMAScript and CommonJS projects.

All structures

TComponentsOfKey

export type TComponentsOfKey = 'numbers' | 'letters' | 'all';

getRandomKey

type TGetRandomKeySignature = (length: number, components: TComponentsOfKey) => string;

/**
    Generate new unique key
    @param {number} length length of your key
    @param {TComponentsOfKey} components additional information about your key

    @returns {string} unique key
*/
export const getRandomKey: TGetRandomKeySignature = (length, components) => {...}
1.0.2

30 days ago

1.0.1

1 month ago

1.0.0

1 month ago