adbsmagic
Version:
A package for AD to BS and BS to AD date conversion
59 lines (37 loc) โข 1.7 kB
Markdown
# AdBsMagic
AdBsMagic is a Node.js project with TypeScript and Jest for testing. It provides functionality to manage and process various data related to your system. This README will guide you through setting up, running, and contributing to the project.
## ๐ฆ Installation
To get started with AdBsMagic, you need to install it as a dependency:
```bash
npm install adbsmagic
```
Or if you're using Yarn:
```bash
yarn add adbsmagic
```
## ๐ Usage
Once installed, you can use the provided functions in your code. For example:
```ts
import { BSToAD, ADToBS } from "adbsmagic";
console.log(BSToAD('2082-01-26')); // Example BS to AD conversion
console.log(ADToBS('2025-01-25')); // Example AD to BS conversion
```
### Functions
- **BSToAD(date: string):** Converts a given BS date string to an AD date string.
- **ADToBS(date: string):** Converts a given AD date string to a BS date string.
## ๐งช Running Tests
To run the tests for this package, you can use Jest. Run the following command:
```bash
npm test
```
## ๐ฅ Contributing
You can contribute to the development of this project by following the steps below:
1. Fork the repository: [https://github.com/BibekBasnet1/ADBSMagic](https://github.com/BibekBasnet1/ADBSMagic)
2. Clone your forked repository to your local machine.
3. Create a new branch (`git checkout -b feature/your-feature-name`).
4. Make your changes and commit them (`git commit -am 'Add new feature'`).
5. Push your changes to your fork (`git push origin feature/your-feature-name`).
6. Create a pull request to the main repository.
We welcome all contributions to improve this project!
## ๐ License
This project is licensed under the MIT License.