ms icon indicating copy to clipboard operation
ms copied to clipboard

Tiny millisecond conversion utility

Results 40 ms issues
Sort by recently updated
recently updated
newest added

Hi! I faced this issue. ``` Could not find a declaration file for module 'ms'. '/Users/ocean/main/haetae/node_modules/.pnpm/[email protected]/node_modules/ms/index.js' implicitly has an 'any' type. Try `npm i --save-dev @types/ms` if it exists or...

As per https://github.com/zeit/ms/issues/124 Here is the PR to add decimal place support. Default is `0`, max decimal place is `3`. ```js ms(60000, { decimal: 1 }) // "1m" ms(66000, {...

This PR enables rounding through the `round`option. `round` defaults to true and current solutions will continue to behave the same. When `round` is set to false, all rounding is disabled....

Hello, I think it's quite awesome that this package is now written in TypeScript! Since it's been over half a year since the last v3 canary, I would like to...

This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.ts(2497) ![image](https://user-images.githubusercontent.com/38668796/173008945-51585aad-7dc2-4134-b58e-ab8d416e3c3a.png)

I'm not entirely sure how to toggle between 30 and 31 days effectively so if anyone can do that please help!

```js var match = /^(-?(?:\d+)?\.?\d+) ``` Could simply be replaced with: ```js var match = /^(-?\d*\.?\d+) ``` The `\d+` matches a digit one or more times. This match is then...

What's the reasoning behind `parse()` returning `undefined` when given invalid input (e.g. '1 secnd')? In my opinion, an error will be much easier to detect and feels syntactically more appropriate...

major

_This PR adds a few things at once, sorry._ ***Breaking*** * Changed the 2nd param to be a `boolean`, toggling `long`-mode directly _Of course this can be reverted, and I'm...