divine-api-wrapper
v1.0.0
Published
A Node.js wrapper for the DivineAPI REST API
Downloads
10
Readme
Divine API Wrapper
A Node.js wrapper for the DivineAPI REST API. This wrapper provides easy access to DivineAPI's astrological and panchang-related endpoints.
Installation
Install the package using npm:
npm install divine-api-wrapper
```javascript
const DivineApiWrapper = require('divine-api-wrapper');
const api = new DivineApiWrapper('YOUR_API_KEY', 'YOUR_AUTH_TOKEN');
api.findPanchang({
day: '24',
month: '05',
year: '2023',
place: 'New Delhi',
lat: '28.6139',
lon: '77.2090',
tzone: '5.5',
lan: 'en'
})
.then(response => {
console.log('Panchang information:', response);
})
.catch(error => {
console.error('Error fetching panchang:', error);
});
License
This project is licensed under the MIT License. See the LICENSE file for details. Acknowledgments
Thanks to DivineAPI for providing the astrological data API Inspired by the need for an easy-to-use Node.js wrapper for DivineAPI