
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
date-templates
Advanced tools
Some templates for Dates like the Date in one hour or at midnight The methods should be pretty selfexplaining if you have codecompletion in you IDE, but here are some examples:
const dates = require('date-templates')
console.log(dates.format(dates.now())) // Get current Date and format it
console.log(dates.format(dates.in(1000))) // Get Date in 1000ms and format it
console.log(dates.format(dates.in(dates.seconds(2)))) // Get Date in 2 seconds and format it
console.log(dates.format(dates.midnight())) // Get Date at midnight and format it
console.log(dates.formatCustom(dates.now(), 'DD/MM/YYYY HH:mm:ss')) // Get current Date and format it using a custom template
console.log(dates.format(dates.tomorrow(dates.at('15:00:00')))) // Get Date tomorrow at 15:00:00 and format it
FAQs
Simple date templates and date generator
The npm package date-templates receives a total of 7 weekly downloads. As such, date-templates popularity was classified as not popular.
We found that date-templates 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.