
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
moment-twitter
Advanced tools

moment.twitter.js is an extension to moment.js that formats dates like Twitter.
Works on both past and future dates.
moment().twitterLong()Web-friendly formatting.
Examples:
Formats time relative to current time.
moment(moment() + (36e5 * 5)).twitter()
// 5 hours
Yes, it does smart pluralization.
moment(moment() + 36e5).twitter()
// 1 hour
Times greater than 24 hours are converted to dates like Mar 7
moment(moment() + 6048e5).twitter()
// Mar 7
moment().twitter()For use on mobile (alias moment().twitterShort()).
Examples:
Units single characters, and there are no spaces.
moment(moment() + (36e5 * 5)).twitterShort()
// 5h
Times greater than 24 hours but more than 6 days are converted to days.
moment(moment() + (864e5 * 6)).twitterShort()
// 6d
Times greater than 6 days are slash-separated.
moment(moment() + 6048e5).twitterShort()
// 3/7/86
FAQs
An extension to moment.js that formats dates like Twitter
We found that moment-twitter 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.