Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
A small library that provides a few very useful methods for displaying dates, including a formatter and a parser.
$ npm install dateable
var dateable = require('dateable');
var str = dateable.format(new Date(), 'MM/DD-YYYY, hh:mm'); // e.g., 03/23-2012, 22:10
dateable.parse(str, 'MM/DD-YYYY, hh:mm') // Returns the original date
If you want to include text in the formatting, just escape it with either ' or ".
var date = new Date(2009, 4, 23)
, format = '"I went to the moon in" YYYY. "I think it was a" dddd "in" MMMM';
dateable.format(date, format); // I went to the moon in 2009. I think it was a Saturday in May
You can also get the answers to simple questions, such as:
var date = new Date(2008, 4, 20);
dateable.when(date); // 4 years ago
// The same question can be asked for future days
dateable.when(new Date(2020, 4, 30)); // in 8 years
// And...
dateable.diff(new Date(2015), new Date()); // 3 years
Because dealing with dates in javascript is a fucking pain in the ass!
FAQs
A date formatter and parser for node
The npm package dateable receives a total of 1,789 weekly downloads. As such, dateable popularity was classified as popular.
We found that dateable 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.