Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

codenumber

jimmymayta29ISC1.2.10TypeScript support: included

codenumber is a simple and efficient library designed to generate unique identifiers composed only of numbers and of fixed size

id, id generate, code, number, codenumber, code number, generate, code generate, generate code, key, key code, keycode, codekey, javascript, lib, tool

readme

CODENUMBER

Description:

codenumber is a simple and efficient library designed to generate unique identifiers composed only of numbers and of fixed size. Ideal for applications that require a reliable method for creating numeric IDs in databases, tracking systems, or any other system that needs unique and consistent identifiers.

Features:

  • Generation of unique IDs: Guarantees that each ID generated is unique.
  • Numbers only: All IDs are numeric sequences, avoiding alphabetic or special characters.
  • Fixed size: Define the length of the generated IDs according to your needs.
  • Fast and efficient: Optimized to generate large numbers of IDs in a short time.
  • Easy to use: Integrate easily into any project with a simple and straightforward interface.

Installation:

You can install codenumber through npm:

npm i codenumber

Examples

JavaScript

const code = require('codenumber').default;
console.log(code());

Code JavaScript

TypeScript

import code from 'codenumber';
console.log(code());

Code TypeScript

Code Number

codenumber is the perfect tool for developers who need a reliable and fast solution for the generation of unique numeric identifiers in projects JavaScript and TypeScript.


Screenshots

Code Number

Code Number