
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
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
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.