Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
hindi-dates
Advanced tools
This package provides a simple and convenient way to get the current date and time in Hindi using the Day.js library.
To install the package, use the following command:
$ npm install hindi-dates
or
$ yarn add hindi-dates
To use the package, import the getHindiDates function and call it as shown below:
import { getHindiDates } from "hindi-dates";
const { dateInHindi, timeInHindi } = getHindiDates();
console.log(`Current Date in Hindi: ${dateInHindi}`);
console.log(`Current Time in Hindi: ${timeInHindi}`);
Current Date in Hindi: ग्यारह फ़रवरी दो हज़ार चौबीस
Current Time in Hindi: छह बजकर तैंतालीस मिनट
The package uses the Day.js library for date and time formatting. The package includes translations for numbers, months, and other constants in Hindi.
Feel free to use and modify the package according to your needs. If you encounter any issues or have suggestions for improvement, please open an issue on the GitHub repository.
FAQs
Get current date and time in हिंदी(hindi) format
The npm package hindi-dates receives a total of 1 weekly downloads. As such, hindi-dates popularity was classified as not popular.
We found that hindi-dates 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.