
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
cli-oop-pkg
Advanced tools
Welcome to the Library Management System project! This is a simple command-line application designed to manage a collection of books using Object-Oriented Programming (OOP) principles in TypeScript.
Welcome to the Library Management System project! This is a simple command-line application designed to manage a collection of books using Object-Oriented Programming (OOP) principles in TypeScript.
inquirer library to create an interactive command-line interface.Allows users to add a new book to the library by entering the title and author of the book.
Enables users to search for a book by its title or author and displays the book details if found. The search feature supports partial matches, meaning you can find a book by entering part of the title or the author's name.
Displays a list of all the books currently available in the library.
Exits the application.
Book interface defines the structure of a book object.Library class in this project manages the collection of books.Library class include addBook, findBooks, and listBooks.To run this project, you need to have Node.js installed on your system. Then, follow these steps:
git clone https://github.com/your-username/library-management-system.git
cd library-management-system
npm install
npm start
Once the application is running, you will be prompted with a menu where you can choose one of the following actions:
Select Add Book from the menu.
Enter the book title and author when prompted.
? What would you like to do? (Use arrow keys)
❯ Add Book
Find Book
List Books
Exit
? Enter the book title: The Great Gatsby
? Enter the book author: F. Scott Fitzgerald
Select Find Book from the menu.
Enter the book title or author when prompted.
? What would you like to do? (Use arrow keys)
Add Book
❯ Find Book
List Books
Exit
? Enter the book title or author to search: Gatsby
Output:
Books found:
The Great Gatsby by F. Scott Fitzgerald
You can also search by a partial title or author name. For example, entering "Fitz" will match "F. Scott Fitzgerald".
? What would you like to do? (Use arrow keys)
Add Book
❯ Find Book
List Books
Exit
? Enter the book title or author to search: Fitz
Output:
Books found:
The Great Gatsby by F. Scott Fitzgerald
Select List Books from the menu.
? What would you like to do? (Use arrow keys)
Add Book
Find Book
❯ List Books
Exit
Output:
Available Books:
The Great Gatsby by F. Scott Fitzgerald
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
Welcome to the Library Management System project! This is a simple command-line application designed to manage a collection of books using Object-Oriented Programming (OOP) principles in TypeScript.
The npm package cli-oop-pkg receives a total of 1 weekly downloads. As such, cli-oop-pkg popularity was classified as not popular.
We found that cli-oop-pkg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.