A Node.js package that provides "On This Day in History" (dinvishesh) information in Marathi. Get historical events, births, and deaths for any date to enhance your knowledge of Indian history and culture.
- Get historical data for any specific date
- Three categories of information:
- Janm (Births) - Notable personalities born on a date
- Mrutyu (Deaths) - Notable personalities who passed away on a date
- Ghatana (Events) - Significant historical events that occurred on a date
- Flexible API with multiple ways to query data
- Data available in Marathi language
- Zero dependencies
npm install dinvishesh
Returns historical information for the current date.
const dinvishesh = require('dinvishesh');
const today = dinvishesh.dinVisheshToday();
Example response:
{
"janm": [
"резреореорез: рд╕реНрдкреЕрдирд┐рд╢ рдЪрд┐рддреНрд░рдХрд╛рд░ рдЖрдгрд┐ рд╢рд┐рд▓реНрдкрдХрд╛рд░ рдкрд╛рдмреНрд▓реЛ рдкрд┐рдХрд╛рд╕реЛ рдпрд╛рдВрдЪрд╛ рдЬрдиреНрдо.",
"резрепрейрен: рд╕рдВрдЧреАрдд рд╕рдореАрдХреНрд╖рдХ рдбреЙ. рдЕрд╢реЛрдХ рд░рд╛рдирдбреЗ рдпрд╛рдВрдЪрд╛ рдЬрдиреНрдо."
],
"mrutyu": [...],
"ghatana": [...]
}
Retrieve historical information for a specific date and category.
Parameters:
category
(optional): 'janm', 'mrutyu', or 'ghatana' (default: 'janm')month
(optional): Month name in lowercase English (e.g., 'january')day
(optional): Day of month as string (e.g., '25')
const births = dinvishesh.dinVishesh('janm', 'january', '11');
Get all entries for a specific category organized by month.
Parameters:
category
: 'janm', 'mrutyu', or 'ghatana'
const allBirths = dinvishesh.dinVisheshByCategory('janm');
Retrieve the complete database of historical information.
const completeData = dinvishesh.dinVisheshAll();
const dinvishesh = require('dinvishesh');
// Get today's historical events
const today = dinvishesh.dinVisheshToday();
console.log('Today in history:', today.ghatana);
// Get births on a specific date
const births = dinvishesh.dinVishesh('janm', 'january', '11');
console.log('Born on January 11:', births);
// Get all deaths by month
const deaths = dinvishesh.dinVisheshByCategory('mrutyu');
console.log('Deaths in January:', deaths.january);
For more examples, check the examples
directory in the repository:
git clone https://github.com/vinodnimbalkar/dinvishesh.git
cd dinvishesh/example
npm install
node demo.js
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Please ensure your PR includes appropriate tests and documentation updates.
If you find this package useful, consider supporting the development:
MIT ┬й Vinod Nimbalkar