npm.io
0.18.26 • Published 2 weeks ago

@thzero/library_common

Licence
MIT
Version
0.18.26
Deps
4
Size
32 kB
Vulns
0
Weekly
0

GitHub package.json version David License: MIT

library_common

Requirements

NodeJs

NodeJs version 18+

Depednencies

By default this library uses the https://github.com/ai/nanoid package for generation of long (21 length) and short (16 length) ids based on https://github.com/ai/nanoid with the default character set.

To use a different id number generator, you can use one of the following packages:

Include the package as dependency in your application, then call the following method

import IdGenerator from '<packagename>';

Utility.setIdGenerator(IdGenerator);

Installation

NPM

Options

The following options can be set, but only apply to the nanoid generation or custom package.