clock-time
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -19,3 +19,3 @@ "use strict"; | ||
function clockTime(ms, seconds) { | ||
if (seconds) { | ||
if (Number.isInteger(seconds)) { | ||
return ms + separator + padSeconds(seconds); | ||
@@ -22,0 +22,0 @@ } |
{ | ||
"name": "clock-time", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Formats milliseconds or minutes and seconds as clock time", | ||
@@ -5,0 +5,0 @@ "author": "Trevor Blades <tdblades@gmail.com>", |
# Clock Time | ||
[![Build Status](https://travis-ci.com/trevorblades/clock-time.svg?branch=master)](https://travis-ci.com/trevorblades/clock-time) | ||
[![Build Status](https://github.com/trevorblades/clock-time/workflows/Node%20CI/badge.svg)](https://github.com/trevorblades/clock-time/actions) | ||
@@ -15,3 +15,3 @@ Formats milliseconds or minutes and seconds as clock time | ||
Import or require the package and pass milliseconds as a single argument to get nicely formatted clock time. | ||
Import or `require` the package and pass milliseconds as a single argument to get nicely formatted clock time. | ||
@@ -48,1 +48,5 @@ ```js | ||
``` | ||
## License | ||
[MIT](./LICENSE) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4134
5
51