
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
date-extractor
Advanced tools
This package provides functionality to parse and manipulate dates in various formats, including relative dates and user prompts.
You can install the package via npm:
npm install date-parser-package
import DateParser, { DateTime } from "date-parser-package";
const dateParser = new DateParser("بعد 3 ايام");
const date = await dateParser.execute();
console.log(date);
The DateTime object returned by the DateParser class has the following properties:
date: String representation of the date.year: Year of the date.quarter: Quarter of the year.month: Month of the year.week: Week number of the year.day: Day of the month.hour: Hour of the day.prev_month_year: Year of the previous month.prev_quarter_year: Year of the previous quarter.prev_month: Month of the previous month.curr_day: Current day of the month.curr_quarter: Current quarter of the year.last_date: Last date of the year.day_date: Date in the format DD/MM/YYYY.days_of_year: Days passed in the current year.prev_quarter: Previous quarter of the year.last_year_date: Last year's date.prev_year: Previous year.month_name_ar: Month name in Arabic.month_name_en: Month name in English.api: Indicates if the date was obtained from an API.contains_date: Indicates if the result contains a valid date.Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
FAQs
text to date extractor in arabic and english
The npm package date-extractor receives a total of 0 weekly downloads. As such, date-extractor popularity was classified as not popular.
We found that date-extractor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.