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.1.3 to 0.2.0

4

index.js
'use strict'
var duration = /(-?\d*\.?\d+(?:e[-+]?\d+)?)\s*([a-zμ]*)/ig
var duration = /(-?\d*\.?\d+(?:e[-+]?\d+)?)\s*([a-zµμ]*)/ig

@@ -14,3 +14,5 @@ module.exports = parse

parse['µs'] =
parse['μs'] =
parse.us =
parse.microsecond = 1 / 1e3

@@ -17,0 +19,0 @@

{
"name": "parse-duration",
"version": "0.1.3",
"version": "0.2.0",
"description": "convert a human readable duration string to ms",

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