
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-extended
Advanced tools
An extension of the ms package that adds support for seconds, minutes, and hours conversions.
npm install ms-extended
import { sec, min, hr } from 'ms-extended'
// Convert to seconds
sec('1m') // 60
sec('2h') // 7200
sec('1 day') // 86400
// Convert to minutes
min('1h') // 60
min('2 days') // 2880
min('30s') // 0.5
// Convert to hours
hr('1 day') // 24
hr('30m') // 0.5
hr('2h') // 2
ms packagems packagems)This package includes TypeScript definitions and uses Template Literal Types for type safety:
import { sec, StringValue } from 'ms-extended'
function example(value: StringValue) {
return sec(value)
}
// Valid
example('1h') // Works
example('2.5 days') // Works
// Invalid
example('invalid') // TypeScript error
MIT
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)FAQs
Milliseconds utility library extended with non-millisecond utilities
We found that ms-extended demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.