Socket
Socket
Sign inDemoInstall

humanize-duration

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

humanize-duration - npm Package Compare versions

Comparing version 3.23.1 to 3.24.0

4

HISTORY.md

@@ -0,1 +1,5 @@

# 3.24.0 / 2020-10-01
- new: Hindi support
# 3.23.1 / 2020-06-11

@@ -2,0 +6,0 @@

@@ -469,2 +469,19 @@ // HumanizeDuration.js - https://git.io/j0HgmQ

},
hi: {
y: "साल",
mo: function (c) {
return c === 1 ? "महीना" : "महीने";
},
w: function (c) {
return c === 1 ? "हफ़्ता" : "हफ्ते";
},
d: "दिन",
h: function (c) {
return c === 1 ? "घंटा" : "घंटे";
},
m: "मिनट",
s: "सेकंड",
ms: "मिलीसेकंड",
decimal: ".",
},
hu: {

@@ -471,0 +488,0 @@ y: "év",

20

package.json

@@ -30,5 +30,7 @@ {

"Neer Thapa(Subit) (https://github.com/nirmalathapa)",
"Fahad Kassim (https://github.com/fadsel)"
"Fahad Kassim (https://github.com/fadsel)",
"Prayag Roy Choudhury (https://github.com/BeardyGod)",
"Aryan Rawlani (https://github.com/aryanrawlani28)"
],
"version": "3.23.1",
"version": "3.24.0",
"description": "Convert millisecond durations to English and many other languages.",

@@ -39,13 +41,13 @@ "homepage": "https://github.com/EvanHahn/HumanizeDuration.js",

"pretest": "npm run lint",
"lint": "prettier --check '**/*.{js,json,md}' && eslint '**/*.js'",
"format": "prettier --write '**/*.{js,json,md}'",
"lint": "prettier --check \"**/*.{js,json,md}\" && eslint \"**/*.js\"",
"format": "prettier --write \"**/*.{js,json,md}\"",
"test": "mocha"
},
"devDependencies": {
"csv-parse": "^4.10.1",
"eslint": "^7.1.0",
"eslint-plugin-mocha": "^7.0.1",
"mocha": "^7.2.0",
"csv-parse": "^4.12.0",
"eslint": "^7.10.0",
"eslint-plugin-mocha": "^8.0.0",
"mocha": "^8.1.3",
"ms": "^2.1.2",
"prettier": "^2.0.5"
"prettier": "^2.1.2"
},

@@ -52,0 +54,0 @@ "keywords": [

# Humanize Duration
[![npm version](https://badge.fury.io/js/humanize-duration.svg)](https://npmjs.org/package/humanize-duration)
[![build status](https://travis-ci.org/EvanHahn/HumanizeDuration.js.svg?branch=master)](https://travis-ci.org/EvanHahn/HumanizeDuration.js)

@@ -157,3 +156,2 @@ I have the time in milliseconds and I want it to become "30 minutes" or "3 days, 1 hour". Enter Humanize Duration!

humanizeDuration(400, {
// '1 year, 1 month, 5 days'
unitMeasures: {

@@ -165,3 +163,3 @@ y: 365,

},
});
}); // '1 year, 1 month, 5 days'
```

@@ -252,2 +250,3 @@

| Hebrew | `he` |
| Hindi | `hi` |
| Hungarian | `hu` |

@@ -318,2 +317,4 @@ | Icelandic | `is` |

- [Fahad Kassim](https://github.com/fadsel) for Swahili support
- [Prayag Roy Choudhury](https://github.com/BeardyGod) for updating Mocha
- [Aryan Rawlani](https://github.com/aryanrawlani28) for Hindi support

@@ -320,0 +321,0 @@ Licensed under the permissive [Unlicense](https://unlicense.org/). Enjoy!

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