Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

convert-ms

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-ms

A lightweight package to convert ms to hours, minutes, and/or seconds.

  • 0.0.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
81
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

About

convert-ms is a package for converting ms, to human time (hours, minutes, seconds).

Installation

Please make sure you have Node.js version 12.0.0 or later installed.

Add it to your project with: npm install convert-ms

Update it with: npm update convert-ms

Examples

const ms = require('convert-ms');

ms.toHMS(36000000);
// -> 10 hour(s), 0 minute(s), and 0 second(s)

ms.toHours(3600000);
// -> 10 hour(s)

ms.toMinutes(36000000);
// -> 600 minute(s)

ms.toSeconds(36000000);
// -> 36000 second(s)

Keywords

FAQs

Package last updated on 04 Jul 2021

Did you know?

Socket

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.

Install

Related posts

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