@tomsd/serial
TypeScript icon, indicating that this package has built-in type declarations

3.1.7 • Public • Published

@tomsd/serial

Serial generates the serial numbers or characters.

npm NPM npms.io (quality) Libraries.io dependency status for latest release Maintenance

Installation

npm install @tomsd/serial

Usage

import { Serial } from "@tomsd/serial";

console.log(Serial.number(3)); // [0, 1, 2]

console.log(Serial.number(3, 1)); // [1, 2, 3]

console.log(Serial.char.lower(3)); // ["a", "b", "c"]

console.log(Serial.char.upper(3)); // ["A", "B", "C"]

console.log(Serial.char.lower(3, 2)); // ["c", "d", "e"]

console.log(Serial.char.upper(3, 2)); // ["C", "D", "E"]

Readme

Keywords

none

Package Sidebar

Install

npm i @tomsd/serial

Weekly Downloads

9

Version

3.1.7

License

MIT

Unpacked Size

5.1 kB

Total Files

5

Last publish

Collaborators

  • tomsd