tickets-common
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

tickets-common

Common components and utilities for the tickets microservices project.

Description

This package contains shared code, utilities, and components that are used across different microservices in the tickets system. It helps maintain consistency and reduces code duplication.

Installation

npm install @tickets/common

Features

  • Common error handling
  • Authentication middleware
  • Input validation
  • Shared interfaces and types
  • Event definitions
  • Common utilities

Usage

import { currentUser, requireAuth } from '@tickets/common';

// Use middleware in your routes
app.use(currentUser);
app.use(requireAuth);

License

This project is licensed under the ISC License.

Readme

Keywords

none

Package Sidebar

Install

npm i tickets-common

Weekly Downloads

20

Version

1.0.11

License

ISC

Unpacked Size

1.44 kB

Total Files

2

Last publish

Collaborators

  • ngoctong421