pretty-ms
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s` (by sindresorhus)
ms.js
Tiny millisecond conversion utility (by vercel)
Our great sponsors
pretty-ms | ms.js | |
---|---|---|
1 | 7 | |
1,008 | 4,970 | |
- | 1.3% | |
5.7 | 3.7 | |
3 months ago | 21 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
pretty-ms
Posts with mentions or reviews of pretty-ms.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-29.
-
Using pure ESM npm packages in serverless-webpack bundles
Recently, some of the npm packages I was using together with Serverless Framework had upgraded to 'pure ESM'. This meant that they no longer supported the older CommonJS require syntax and I needed to figure out how get Webpack to bundle eveything up nicely again to deploy as a CommonJS AWS lambda.
ms.js
Posts with mentions or reviews of ms.js.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-27.
-
10 Powerful Node.js Libraries Every Developer Should Know About
8.ms
- Python package like javascript's ms package
- Effort to fix much used software library gets shut down multiple times
-
I’m one of those legendary senior devs. 40 years of experience. But I’ve been in a rut for a long time. Now I’m recovering from surgery, with 6 weeks stuck in a chair. How can I use this time to update my skills?
For recurring habits I just store an ms string, when I tick something off it adds that time for the next time it's due. Easy peasy.
-
How to create a notification/toast system in React Typescript with Redux Toolkit, Tailwind and Framer Motion
Next.js Redux Toolkit Framer Motion Tailwind Radix UI Radix colors react-use clsx lodash ms
-
I really hate it how Reddit uses "m" as the symbol for both months and minutes. When I first got to this post, all the posts said "2m." Only when I refreshed could I tell that the latter comment was made within the last few minutes rather than two months ago.
I've been fighting this in many places, but of course there are fools out there who actually defend this practice rather than be indifferent to it at worst. Fixing it in those two places would actually fix about 70–80% of all such instances, since many websites just depend on those libraries. Feel free to upvote them, respectively.
-
Caching SSM Parameter Store values in Lambda
The final and most important function of our Lambda, the loadParameters function accepts a single value named expiryTime that is by default set to 1 hour and can be overridden. I have used the ms library to set human readable time periods which will be automatically converted to milliseconds.
What are some alternatives?
When comparing pretty-ms and ms.js you can also consider the following projects:
pretty-bytes - Convert bytes to a human readable string: 1337 → 1.34 kB
pretty-error - See node.js errors with less clutter
humanize - A JS library for adding a “human touch” to data.
date-fns - ⏳ Modern JavaScript date utility library ⌛️
dayjs - ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
read-art - Scrape/Crawl article from any site automatically. Make any web page readable, no matter Chinese or English.
serverless-webpack - Serverless plugin to bundle your lambdas with Webpack
moment-timezone - Timezone support for moment.js
learnbyvideo.dev - Find the best web development videos