1.0.5 • Published 6 months ago

ticket-id-gen v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Ticket ID Generator

ticket-id-gen is a lightweight Node.js package designed to generate sophisticated and unique ticket IDs for managing customer service tickets effectively.

Installation

To install the package:

npm install ticket-id-gen

Usage

const ticketIdGenerator = require('ticket-id-gen');

// Generate a ticket ID with a specific category code
const categoryCode = 'PRD'; // Example category code (Product)
const ticketID = ticketIdGenerator.generateTicket(categoryCode);
console.log('Generated Ticket ID:', ticketID);

Function: generateTicket(categoryCode)

Generates a ticket ID based on the specified category code.

  • Parameters:

    • categoryCode (string): A short code representing the category of the service (e.g., 'PRD' for Product, 'SER' for Service).
  • Returns:

    • A string representing the generated service ticket ID.

Examples

Generating a Ticket ID

const ticketIdGenerator = require('ticket-id-gen');
const categoryCode = 'PRD';
const ticketID = ticketIdGenerator.generateTicket(categoryCode);
console.log('Generated Ticket ID:', ticketID);

License

This package is licensed under the MIT License.

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago