Socket
Socket
Sign inDemoInstall

convertem

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convertem - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

2

package.json
{
"name": "convertem",
"version": "1.0.2",
"version": "1.1.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -50,1 +50,17 @@ # Convert 'em

```
- **fromMsToString** - convert argument from milliseconds to backward-compatible string
```js
fromMsToString(1000, 'ms'); // 1000 ms
fromMsToString(1000, 'ss'); // 1 sec
fromMsToString(1541, 'ss'); // 1 sec
fromMsToString(1541, 'ss', 2); // 1.54 sec
fromMsToString(90000, 'mm'); // 1 min
fromMsToString(90000, 'mm', 1); // 1.5 min
fromMsToString(5400000, 'hh'); // 1 h
fromMsToString(5400000, 'hh', 1) // 1.5 h
fromMsToString(5400000, 'hh:mm'); // 01:30
fromMsToString(5400000, 'hh:mm:ss'); // 01:30:00
fromMsToString(1802000, 'mm ss'); // 30 min 2 sec
fromMsToString(5402000, 'hh mm ss'); // 1 h 30 min 2 sec
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc