A package for AD to BS and BS to AD date conversion
npm install adbsmagicAdBsMagic 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.
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
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
`
- 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.
To run the tests for this package, you can use Jest. Run the following command:
`bash`
npm test
You can contribute to the development of this project by following the steps below:
1. Fork the repository: 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).git commit -am 'Add new feature'
4. Make your changes and commit them ().git push origin feature/your-feature-name`).
5. Push your changes to your fork (
6. Create a pull request to the main repository.
We welcome all contributions to improve this project!
This project is licensed under the MIT License.