![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@makenova/seconds
Advanced tools
Use this package to easily convert various time formats to seconds. This package was forked from zeit/ms
seconds('2 days') // 172800
seconds('1d') // 86400
seconds('10h') // 36000
seconds('2.5 hrs') // 9000
seconds('2h') // 7200
seconds('1m') // 60
seconds('5s') // 5
seconds('1y') // 31557600
seconds('100') // 100
seconds(60) // "1m"
seconds(2 * 60) // "2m"
seconds(seconds('10 hours')) // "10h"
seconds(60, { long: true }) // "1 minute"
seconds(2 * 60, { long: true }) // "2 minutes"
seconds(seconds('10 hours'), { long: true }) // "10 hours"
seconds
, a string with a unit is returned.100
for '100'
).npm link
npm link @makenova/seconds
. Instead of the default one from npm, node will now use your clone of seconds!As always, you can run the tests using: npm test
FAQs
Tiny second conversion utility forked from zeit/ms
We found that @makenova/seconds 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.