A lightweight JavaScript date utility library that provides modularity, high performance, and additional features. It supports various date operations, including date addition and subtraction, formatting, comparison, etc.
npm install date-manip



---
date-manip is a lightweight and modular JavaScript library for handling date operations with high performance. It provides a rich set of features, including date arithmetic (addition/subtraction), formatting, comparison, and more.
Whether you're building a small utility or a large-scale application, date-manip simplifies complex date manipulations while maintaining efficiency and flexibility.
- Modularity: Supports modular import and on-demand loading.
- High Performance: Optimized performance for various scenarios.
- Chaining: Supports chaining, making the code more concise.
- Rich Features: Supports date addition and subtraction, formatting, comparison, and other operations.
For detailed usage instructions and API references, please visit the official documentation:
Install date-manip via npm:
``bash`
npm install date-manip
Here’s a quick example to get you started:
`javascript
import { addDays, format } from 'date-manip';
// Add 5 days to the current date
const newDate = addDays(new Date(), 5);
// Format the date as "YYYY-MM-DD"
console.log(format(newDate, 'YYYY-MM-DD'));
``
We welcome contributions from the community! If you find a bug or want to suggest an improvement, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.