@martanara/id-generator
v1.0.1
Published
Generates unique ids that are a combination of lowercase letters, uppercase letters and numbers
Downloads
1
Maintainers
Readme
Generates unique ids that are a combination of lowercase letters, uppercase letters and numbers
Install
Install with npm:
$ npm install --save @martanara/id-generator
Install with yarn:
$ yarn add @martanara/id-generator
Usage
Works with numbers
const randomId = require('@martanara/id-generator');
console.log(randomId(10)); // outputs: hd7C8nkXU3
console.log(randomId(15)); // outputs: oVCylmnMWvbpCHs
console.log(randomId(33)); // outputs: Fwjkqdkpf02TZ8EKs0T99uCEzQk4LDNSn
Author
Marta Nara
License
Copyright © 2022, Marta Nara. Released under the MIT License.