simple-ticket-umd
v1.0.0
Published
A simple flight ticket module built with UMD
Maintainers
Readme
mohamed-simple-ticket-umd
A lightweight UMD flight ticket module for creation, lookup, and update of ticket fields.
✅ Features
- Create a ticket object
- Print full ticket details
- Read a single ticket property
- Update a single ticket property
🚀 Quick Start
npm install mohamed-simple-ticket-umd📦 Usage
const Ticket = require('mohamed-simple-ticket-umd');
const ticket = Ticket.create({
passengerName: 'Jane Doe',
flight: 'AC123',
seat: '12A',
price: 320,
});
console.log(Ticket.display(ticket));
console.log(Ticket.get(ticket, 'seat')); // 12A
Ticket.update(ticket, 'seat', '12B');🧪 Test
From the UMD folder:
node test.js📁 Files
UMD/index.js- module implementationUMD/test.js- quick runtime tests
✨ Notes
This module is designed for UMD-based bundles and easy integration in Node.js and browser builds.
