Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Jun 1, 2024 via pnpm

pretty-ms 1.2.0

Convert milliseconds to a human readable string: 1337000000 β†’ 15d 11h 23m 20s
Package summary
Share
4
issues
2
high severity
vulnerability
1
license
1
2
low severity
license
2
6
licenses
41
MIT
4
ISC
2
Apache-2.0
3
other licenses
BSD-2-Clause
1
CC-BY-3.0
1
CC0-1.0
1
Package created
20 Mar 2014
Version published
22 Jun 2015
Maintainers
1
Total deps
50
Direct deps
4
License
MIT

Issues

4

2 high severity issues

high
Recommendation: Upgrade to version 3.0.1 or later
via: meow@3.7.0
Recommendation: Read and validate the license terms
via: meow@3.7.0
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: meow@3.7.0
Recommendation: Read and validate the license terms
via: meow@3.7.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
41 Packages, Including:
array-find-index@1.0.2
camelcase-keys@2.1.0
camelcase@2.1.1
currently-unhandled@0.4.1
decamelize@1.2.0
error-ex@1.3.2
find-up@1.1.2
function-bind@1.1.2
get-stdin@4.0.1
hasown@2.0.2
indent-string@2.1.0
is-arrayish@0.2.1
is-core-module@2.13.1
is-finite@1.1.0
is-utf8@0.2.1
load-json-file@1.1.0
loud-rejection@1.6.0
map-obj@1.0.1
meow@3.7.0
minimist@1.2.8
object-assign@4.1.1
parse-json@2.2.0
parse-ms@1.0.1
path-exists@2.1.0
path-parse@1.0.7
path-type@1.1.0
pify@2.3.0
pinkie-promise@2.0.1
pinkie@2.0.4
plur@1.0.0
pretty-ms@1.2.0
read-pkg-up@1.0.1
read-pkg@1.1.0
redent@1.0.0
repeating@2.0.1
resolve@1.22.8
spdx-expression-parse@3.0.1
strip-bom@2.0.0
strip-indent@1.0.1
supports-preserve-symlinks-flag@1.0.0
trim-newlines@1.0.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
graceful-fs@4.2.11
hosted-git-info@2.8.9
semver@5.7.2
signal-exit@3.0.7

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
2 Packages, Including:
spdx-correct@3.2.0
validate-npm-package-license@3.0.4

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
normalize-package-data@2.5.0

Creative Commons Attribution 3.0 Unported

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-exceptions@2.5.0

Creative Commons Zero v1.0 Universal

Public Domain
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-license-ids@3.0.18
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of pretty-ms 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
get-stdin4.0.1978 BMIT
prod
meow3.7.03.53 kBMIT
prod
2
2
parse-ms1.0.11.5 kBMIT
prod
plur1.0.01.51 kBMIT
prod

Visualizations

Frequently Asked Questions

What does pretty-ms do?

The npm package "pretty-ms" is a handy tool designed to convert milliseconds into a human-readable string format. For instance, it can change a number like 1337000000 into a more comprehensible format like 15d 11h 23m 20s, making it much easier to understand for non-technical users or for more readable logging or display in applications.

How do you use pretty-ms?

To use the 'pretty-ms' package, you'll first need to install it to your project using npm with the command npm install pretty-ms. Once installed, you can import it into your JavaScript file using the line import prettyMilliseconds from 'pretty-ms';.

Here are a few examples of how to use the 'pretty-ms' package:

// Basic usage
prettyMilliseconds(1337000000); // Returns '15d 11h 23m 20s'

// Using compact option
prettyMilliseconds(1337, {compact: true}); // Returns '1s'

// Using verbose option
prettyMilliseconds(1335669000, {verbose: true}); // Returns '15 days 11 hours 1 minute 9 seconds'

// Using colonNotation option
prettyMilliseconds(95500, {colonNotation: true}); // Returns '1:35.5'

The 'pretty-ms' package also offers other options such as formatSubMilliseconds, unitCount, and secondsDecimalDigits among others, to provide more flexibility to users.

Where are the pretty-ms docs?

The full documentation for the 'pretty-ms' package can be found in its README file on the GitHub repository page. The URL is: https://github.com/sindresorhus/pretty-ms. The README document provides comprehensive details about the package usage, options and the API. It is also the source for any updates or changes made in the package. It is advisable to keep the link bookmarked for your reference.