Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Pretty datetime:
2014-01-09 06:46:01
$ npm install --save date-time
const dateTime = require('date-time');
dateTime();
//=> '2017-05-20 17:07:05'
dateTime({date: new Date(1989, 2, 4, 10)});
//=> '1989-03-04 09:00:00'
dateTime({showTimeZone: true});
//=> '2017-05-20 17:07:05 UTC+7'
dateTime({local: false});
//=> '2017-05-20 10:07:05'
dateTime({local: false, showTimeZone: true});
//=> '2017-05-20 10:07:05 UTC'
dateTime({showMilliseconds: true});
//=> '2017-05-20 17:07:05 6ms'
Type: Object
Type: Date
Default: new Date()
Custom date.
Type: boolean
Default: true
Show the date in the local time zone.
Type: boolean
Default: false
Show the UTC time zone postfix.
Type: boolean
Default: false
Show the milliseconds in the date if any.
MIT © Sindre Sorhus
FAQs
Pretty datetime: `2014-01-09 06:46:01`
The npm package date-time receives a total of 431,979 weekly downloads. As such, date-time popularity was classified as popular.
We found that 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.