parse-duration
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -6,2 +6,14 @@ // ./index.d.ts | ||
*/ | ||
export default function parse (str: string): number | null | ||
type Units = | ||
'nanosecond' | 'ns' | | ||
'µs' | 'μs' | 'us' | 'microsecond' | | ||
'millisecond' | 'ms' | | ||
'second' | 'sec' | 's' | | ||
'minute' | 'min' | 'm' | | ||
'hour' | 'hr' | 'h' | | ||
'day' | 'd' | | ||
'week' | 'wk' | 'w' | | ||
'month' | 'b' | | ||
'year' | 'yr' | 'y' | ||
export default function parse (str: string, format?: Units): number | null |
{ | ||
"name": "parse-duration", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "convert a human readable duration string to a duration format", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
6236
116