
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
intl-date-time
Advanced tools
A tiny wrapper around the native Intl.DateTimeFormat, with predefined formats.
A tiny wrapper around the native Intl.DateTimeFormat, with predefined formats.
Intl.DateTimeFormat
API.npm install --save intl-date-time
import { format } from 'intl-date-time';
format(date, 'mediumDate');
// Aug 1, 2020
format(date, 'shortTime');
// 6:32 PM
Alternatively, you can get the format options for manual use.
import { getOptions } from 'intl-date-time';
const options = getOptions('longDate');
new Intl.DateTimeFormat('en-US').format(date, options);
// August 1, 2020
Format | Example |
---|---|
short | 08/1/20, 6:32 PM |
medium | Aug 1, 2020, 6:32:21 PM |
long | August 1, 2020, 6:32:21 PM PDT |
full | Saturday, August 1, 2020, 6:32:21 PM PDT |
shortDate | 08/1/20 |
mediumDate | Aug 1, 2020 |
longDate | August 1, 2020 |
fullDate | Saturday, August 1, 2020 |
shortTime | 6:32 PM |
mediumTime | 6:32:21 PM |
longTime | 6:32:21 PM PDT |
npm install
npm run build
FAQs
A tiny wrapper around the native Intl.DateTimeFormat, with predefined formats.
The npm package intl-date-time receives a total of 0 weekly downloads. As such, intl-date-time popularity was classified as not popular.
We found that intl-date-time demonstrated a not healthy version release cadence and project activity because the last version was released 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.