Socket
Socket
Sign inDemoInstall

parse-duration

Package Overview
Dependencies
Maintainers
3
Versions
21
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 0.4.2 to 0.4.3

14

index.d.ts

@@ -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

2

package.json
{
"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": [

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