You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

parse-duration

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-duration - npm Package Compare versions

Comparing version

to
2.1.4

2

index.d.ts

@@ -33,3 +33,3 @@ type Units = {

* @param {string} format - The format to use for conversion (default is 'ms').
* @returns {number} - The parsed duration in milliseconds.
* @returns {number|null} - The parsed duration in milliseconds.
*/

@@ -36,0 +36,0 @@ declare function parse(str?: string, format?: string): number | null;

@@ -12,3 +12,3 @@ import en from './locale/en.js'

* @param {string} format
* @return {number}
* @return {number|null}
*/

@@ -15,0 +15,0 @@ export default function parse(str = '', format = 'ms') {

{
"name": "parse-duration",
"version": "2.1.3",
"version": "2.1.4",
"description": "Convert a human readable duration string to a duration format",

@@ -5,0 +5,0 @@ "keywords": [