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.
@t0ri/dates
Advanced tools
![Travis (.com)](https://img.shields.io/travis/com/t0ri/dates?style=flat-square) ![Coveralls github](https://img.shields.io/coveralls/github/t0ri/dates?style=flat-square) ![GitHub repo size](https://img.shields.io/github/repo-size/t0ri/dates?style=flat-sq
Create a new Deight similar to creating a Date.
const date = new Deight('2/19/1998')
date.date -> 1998-02-19T08:00:00.000Z
const date = new Deight('2/19/1998')
date.year -> 1998
const date = new Deight('2/19/1998')
date.month -> 'February'
const date = new Deight('2/19/1998')
date.month -> 'February'
const date = new Deight('2/19/1998 13:15:30')
date.hours -> 13
const date = new Deight('2/19/1998 13:15:30')
date.minutes -> 15
const date = new Deight('2/19/1998 13:15:30')
date.seconds -> 30
Deight objects can return their date and time formatted with many options.
const date = new Deight('2/19/1998 13:15:30')
date.format('M d, Y') -> 'February 19, 1998'
'Y' -> 2019
'y' -> 19
'M' -> July
'm' -> Jul
'D' -> 01
'd' -> 1
'H' -> 05
'h' -> 5
'I' -> 08
'i' -> 8
'S' -> 04
's' -> 4
Deight's when()
method will return how many days, months, or years ago or until a given date.
const date = new Deight('2/19/1998 13:15:30')
date.when('2/22/1998') -> '3 days from now'
date.when('2/22/1997') -> '1 year ago'
FAQs
![Travis (.com)](https://img.shields.io/travis/com/t0ri/dates?style=flat-square) ![Coveralls github](https://img.shields.io/coveralls/github/t0ri/dates?style=flat-square) ![GitHub repo size](https://img.shields.io/github/repo-size/t0ri/dates?style=flat-sq
The npm package @t0ri/dates receives a total of 0 weekly downloads. As such, @t0ri/dates popularity was classified as not popular.
We found that @t0ri/dates 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.