
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ms-typescript
Advanced tools
Tiny millisecond conversion utility. Original package was developed by Vercel. This is reworked TypeScript version
Use this package to easily convert various time formats to milliseconds.
toMs('2 days') // 172800000
toMs('1d') // 86400000
toMs('10h') // 36000000
toMs('2.5 hrs') // 9000000
toMs('2h') // 7200000
toMs('1m') // 60000
toMs('5s') // 5000
toMs('1y') // 31557600000
toMs('100') // 100
toMs('-3 days') // -259200000
toMs('-1h') // -3600000
toMs('-200') // -200
fromMs(60000) // "1m"
fromMs(2 * 60000) // "2m"
fromMs(-3 * 60000) // "-3m"
fromMs(toMs('10 hours')) // "10h"
fromMs(60000, { long: true }) // "1 minute"
fromMs(2 * 60000, { long: true }) // "2 minutes"
fromMs(-3 * 60000, { long: true }) // "-3 minutes"
fromMs(toMs('10 hours'), { long: true }) // "10 hours"
FAQs
Tiny millisecond conversion utility. Original package was developed by Vercel. This is reworked TypeScript version
The npm package ms-typescript receives a total of 6,031 weekly downloads. As such, ms-typescript popularity was classified as popular.
We found that ms-typescript 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.