
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Milliseconds conversion utility, inspired by guille/ms.js
npm install date-ms
bower install date-ms
var ms = require('date-ms');
ms('1d') // 86400000
ms('10h') // 36000000
ms('2h') // 7200000
ms('1m') // 60000
ms('5s') // 5000
ms('100') // 100
ms(1000) // 1000
ms() // +new Date()
ms('') // +new Date()
ms(null) // +new Date()
ms(undefined) // +new Date()
ms( new Date('2013-04-05') ) // 1365120000000
ms('2013-04-05') // 1365120000000
ms('2013-04-09T13:45+0400') // 1365500700000
ms('Thu May 16 2013 00:47:53 GMT+0400 (MSK)') // 1368650873000
ms.tz // -14400000
// start of day in user's timezone
ms.sod('2013-06-17T12:02:40+0400') // +new Date('2013-06-17T00:00:00+0400')
MIT
FAQs
date string to ms convertion lib
The npm package date-ms receives a total of 4 weekly downloads. As such, date-ms popularity was classified as not popular.
We found that date-ms 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.