
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@easy-ds-bot/timeparser
Advanced tools
Simply string time converter (en/ru)
From "5d2h" to 439200000 ms
v18 or newertimeparser via npm:npm i @easy-ds-bot/timeparser
timeparser:// file.js, type: CommonJS
const { parseTime } = require("@easy-ds-bot/timeparser");
let unparsed = "1h5week";
let parsed = parseTime(unparsed);
console.log(parsed.ms); //3_027_600_000 ms
console.log(parsed.seconds); //3_027_600 sec
or...
// file.js, type: ESM
import { parseTime } from "@easy-ds-bot/timeparser";
let unparsed = "1h5week";
let parsed = parseTime(unparsed);
console.log(parsed.ms); //3_027_600_000 ms
console.log(parsed.seconds); //3_027_600 sec
(cjs) parseTime("1s") x 311,011 ops/sec ±3.58% (79 runs sampled)
(cjs) parseTime("1s").ms x 302,129 ops/sec ±1.53% (83 runs sampled)
(cjs) parseTime("1s").years x 322,713 ops/sec ±1.16% (88 runs sampled)
(cjs) parseTime("1s")._deparsed x 177,589 ops/sec ±1.03% (80 runs sampled)
(cjs) parseTime("1y2mth3w4d5h6s7ms") x 112,658 ops/sec ±0.88% (93 runs sampled)
(cjs) parseTime("1y2mth3w4d5h6s7ms").ms x 113,132 ops/sec ±0.44% (94 runs sampled)
(cjs) parseTime("1y2mth3w4d5h6s7ms").years x 110,092 ops/sec ±0.65% (91 runs sampled)
(cjs) parseTime("1y2mth3w4d5h6s7ms")._deparsed x 84,229 ops/sec ±0.53% (95 runs sampled)
(esm) parseTime("1s") x 297,430 ops/sec ±3.12% (79 runs sampled)
(esm) parseTime("1s").ms x 319,093 ops/sec ±0.82% (85 runs sampled)
(esm) parseTime("1s").years x 327,453 ops/sec ±0.95% (89 runs sampled)
(esm) parseTime("1s")._deparsed x 180,199 ops/sec ±0.97% (94 runs sampled)
(esm) parseTime("1y2mth3w4d5h6s7ms") x 114,544 ops/sec ±0.50% (94 runs sampled)
(esm) parseTime("1y2mth3w4d5h6s7ms").ms x 112,932 ops/sec ±0.55% (94 runs sampled)
(esm) parseTime("1y2mth3w4d5h6s7ms").years x 109,972 ops/sec ±0.48% (89 runs sampled)
(esm) parseTime("1y2mth3w4d5h6s7ms")._deparsed x 85,896 ops/sec ±0.64% (94 runs sampled)
FAQs
Simply string time converter (en/ru). From "5d2h" to 439200000 ms
The npm package @easy-ds-bot/timeparser receives a total of 10 weekly downloads. As such, @easy-ds-bot/timeparser popularity was classified as not popular.
We found that @easy-ds-bot/timeparser 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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.