
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
nanakshahi
Advanced tools
A JavaScript Library to get Nanakshahi Dates and Gurpurabs
The library can be imported into Node as below:
const { getNanakshahiDate, getBikramiDate } = require('nanakshahi')
const date = new Date()
getNanakshahiDate( date )
getBikramiDate( date )
Object
Converts given Gregorian Date to the corresponding date in the Bikrami Calendar
Returns: Object
- Bikrami Solar and Lunar Date
Param | Type | Description |
---|---|---|
gregorianDate | Object | JavaScript Date() Object |
Example
getBikramiDate( new Date() )
Object
Converts given Gregorian Date to the corresponding date in the Nanakshahi Calendar
Returns: Object
- Nanakshahi Date in English and Punjabi
Param | Type | Description |
---|---|---|
gregorianDate | Object | JavaScript Date() Object |
Example
getNanakshahiDate( new Date() )
We're happy to accept suggestions and pull requests!
To get started, clone this repo and run npm install
inside this directory.
This repository follows the Airbnb's Javascript Style Guide, with a few minor modifications. Notably, spaces should be included inside parentheses and brackets (weird, right!). An ESLint file is provided,
and your code will automatically be checked on-commit for style.
It is recommended to install an ESLint plugin for your editor (VS Code's ESLint
plugin works out of the box), so you can receive
linter suggestions as you type.
When writing commit messages, please follow the seven rules.
Markdown and HTML JSDoc documentation is generated automatically, on commit,
however if you'd like to preview any changes to documentation, npm run build-docs
will
update README.md
. README.md
should not be edited, instead apply modifications to README.hbs
.
The general workflow for contributing:
npm test
and ensure they all pass. Testing is done with the mocha
testing framework.FAQs
A JavaScript Library to get Nanakshahi Dates and Gurpurabs
The npm package nanakshahi receives a total of 13 weekly downloads. As such, nanakshahi popularity was classified as not popular.
We found that nanakshahi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.