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.21.0 to 3.22.0

5

HISTORY.md

@@ -0,1 +1,6 @@

3.22.0 / 2020-02-28
===================
* new: Hebrew support
3.21.0 / 2019-09-26

@@ -2,0 +7,0 @@ ===================

@@ -168,2 +168,13 @@ // HumanizeDuration.js - https://git.io/j0HgmQ

gr: greek,
he: {
y: function (c) { return c === 1 ? 'שנה' : 'שנים' },
mo: function (c) { return c === 1 ? 'חודש' : 'חודשים' },
w: function (c) { return c === 1 ? 'שבוע' : 'שבועות' },
d: function (c) { return c === 1 ? 'יום' : 'ימים' },
h: function (c) { return c === 1 ? 'שעה' : 'שעות' },
m: function (c) { return c === 1 ? 'דקה' : 'דקות' },
s: function (c) { return c === 1 ? 'שניה' : 'שניות' },
ms: function (c) { return c === 1 ? 'מילישנייה' : 'מילישניות' },
decimal: '.'
},
hr: {

@@ -170,0 +181,0 @@ y: function (c) {

2

package.json

@@ -31,3 +31,3 @@ {

],
"version": "3.21.0",
"version": "3.22.0",
"description": "Convert millisecond durations to English and many other languages.",

@@ -34,0 +34,0 @@ "homepage": "https://github.com/EvanHahn/HumanizeDuration.js",

@@ -11,7 +11,14 @@ Humanize Duration

Installation
------------
This package is available as *humanize-duration* on [npm](https://www.npmjs.com/package/humanize-duration) and Bower. You can also include the JavaScript file in the browser.
```sh
npm install humanize-duration
```
Basic usage
-----------
This package is available as *humanize-duration* on [npm](https://www.npmjs.com/package/humanize-duration) and Bower. You can also include the JavaScript file in the browser.
With `require` (like in Node or with common build systems):

@@ -244,2 +251,3 @@

| Greek | `el` |
| Hebrew | `he` |
| Hungarian | `hu` |

@@ -320,2 +328,1 @@ | Icelandic | `is` |

* [aurelia-time](https://github.com/shahabganji/aurelia-time)
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