You-Dont-Need-Momentjs
proposal-temporal
Our great sponsors
You-Dont-Need-Momentjs | proposal-temporal | |
---|---|---|
18 | 89 | |
13,224 | 3,114 | |
0.0% | 2.6% | |
5.7 | 9.4 | |
5 months ago | 7 days ago | |
JavaScript | HTML | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
You-Dont-Need-Momentjs
-
What are some of the best libraries you cannot work without?
It’s been a few years since I looked at moment.js, but you couldn’t tree-shake it properly back then. That’s when I found this: https://github.com/you-dont-need/You-Dont-Need-Momentjs
- Common Date formatter libraries in React (TypeScript)
-
Day.js - Fast 2kB alternative to Moment.js with the same modern API
Moment is considered a legacy project now. So you might want to rethink using it. Moment isn't as great as it used to be and native's capabilities are a lot more advanced that they were before.
-
You don't (may not) need Moment.js
In JavaScript you actually use `Intl.DateTimeFormat`[1] to format datetimes, which takes in a pretty descriptive configuration object with keys such as `month: "short"`, `hour: "2-digit"`, and `hour12: true`.
This is missing in the OP explainer, so I created a PR[2].
1: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
2: https://github.com/you-dont-need/You-Dont-Need-Momentjs/pull...
- Have you guys tried any alternatives to Moment.js?
-
The best JavaScript date libraries in 2021
The Day.js documentation claims "If you use Moment.js, you already know how to use Day.js", which would make migrating easier. You can see direct comparisons at the excellent You don't (may not) need Moment.js. The code in our example CodePen is readable with the exception of the parsing and time zone cases.
proposal-temporal
-
Show HN: Trigger.dev V2 – a Temporal alternative for TypeScript devs
In the TypeScript/JavaScript world the only thing called "Temporal" that I was aware of is the Stage 3 proposal for an excellent new date and time module:
-
Updates from the 97th TC39 meeting
Time Zone Canonicalization: Stacked on Temporal to improve handling of changes to the IANA Time Zone Database.
- IAMA senior javascript dev, ask me anything
-
What library do you use to handle dates?
Roll-on Temporal!
Just an FYI, The Temporal API is currently in stage 3 and should provide some great tools for working with dates without the need for third party libraries.
There is a list of polyfills at the bottom of the page that can be used in production. https://github.com/tc39/proposal-temporal
-
Literally
TemporalJS is in stage 3 (of 4) of being pulled into the JavaScript standard lib. It really can't come soon enough...
-
Common Date formatter libraries in React (TypeScript)
in my opinion it's time to start using Temporal, the new integrated API for handling date / time in JS. It's not in Browsers yet, but the polyfill works well.
-
Updates from the 95th TC39 meeting
I ran this in the console of the documentation page.
-
I literally wouldn't even, even if i could, y'all.
Look forward to Temporal.
What are some alternatives?
moment - Parse, validate, manipulate, and display dates in javascript.
dayjs - ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
Luxon - ⏱ A library for working with dates and times in JS
date-fns - ⏳ Modern JavaScript date utility library ⌛️
import-maps - How to control the behavior of JavaScript imports
sdk-typescript - Temporal TypeScript SDK
js-joda - :clock2: Immutable date and time library for javascript
proposal-relative-indexing-method - A TC39 proposal to add an .at() method to all the basic indexable classes (Array, String, TypedArray)
wasmer - 🚀 The leading Wasm Runtime supporting WASIX, WASI and Emscripten
babel-ts-export-type-bug - repro of type erase problem in babel's typescript support