
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
fast-date-parse
Advanced tools
Performant date parsing.
npm i fast-date-parse
const DateParser = require('fast-date-parse')
const parser = new DateParser('YYYY-MM-DD')
parser.parse('2018-09-02')
Supported tokens:
Token | Example | Description |
---|---|---|
YYYY | 2018 | Year |
MM | 01..12 | Month |
HH | 00..23 | Hours (24 hour time) |
DD | 01..31 | Day of month |
mm | 00..59 | Minutes |
ss | 00..59 | Seconds |
SSS | 000..999 | Milliseconds |
Creates a new parser.
The parser ignores all non-token characters.
Parses the dateString
and returns a date object.
$ node benchmark/benchmark.js
moment x 73,592 ops/sec ±1.75% (90 runs sampled)
fast-date-parse x 1,727,745 ops/sec ±1.09% (87 runs sampled)
fecha x 98,347 ops/sec ±1.74% (84 runs sampled)
Fastest is fast-date-parse
FAQs
fast date parsing
The npm package fast-date-parse receives a total of 73 weekly downloads. As such, fast-date-parse popularity was classified as not popular.
We found that fast-date-parse 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.