Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 1.0.2 to 1.0.3

0

index.d.ts

@@ -0,0 +0,0 @@ // ./index.d.ts

@@ -0,0 +0,0 @@ 'use strict'

6

package.json
{
"name": "parse-duration",
"version": "1.0.2",
"version": "1.0.3",
"description": "convert a human readable duration string to a duration format",

@@ -12,5 +12,7 @@ "keywords": [

"main": "./index.js",
"types": "./index.d.ts",
"exports": {
"require": "./index.js",
"import": "./index.mjs"
"import": "./index.mjs",
"types": "./index.d.ts"
},

@@ -17,0 +19,0 @@ "dependencies": {},

@@ -44,8 +44,9 @@

parse('1hr 20mins') // => 1 * h + 20 * m
parse('1 hr 20 mins') // => 1 * h + 20 * m
```
whitespace
youtube format
```js
parse('1 hr 20 mins') // => 1 * h + 20 * m
parse('1h20m0s') // => 1 * h + 20 * m
```

@@ -52,0 +53,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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