humanize-duration
Advanced tools
Comparing version 0.4.1 to 0.6.0
@@ -6,4 +6,2 @@ /* | ||
Lovingly made by Evan Hahn with language support by Martin Prins. Unlicensed. | ||
*/ | ||
@@ -140,2 +138,22 @@ | ||
millisecond: function() { return "밀리 초"; } | ||
}, | ||
nob: { | ||
year: function() { return "år"; }, | ||
month: function(c) { return "måned" + ((c !== 1) ? "er" : ""); }, | ||
week: function(c) { return "uke" + ((c !== 1) ? "r" : ""); }, | ||
day: function(c) { return "dag" + ((c !== 1) ? "er" : ""); }, | ||
hour: function(c) { return "time" + ((c !== 1) ? "r" : ""); }, | ||
minute: function(c) { return "minutt" + ((c !== 1) ? "er" : ""); }, | ||
second: function(c) { return "sekund" + ((c !== 1) ? "er" : ""); }, | ||
millisecond: function(c) { return "millisekund" + ((c !== 1) ? "er" : ""); } | ||
}, | ||
de: { | ||
year: function(c) { return "jahr" + ((c !== 1) ? "e" : ""); }, | ||
month: function(c) { return "monat" + ((c !== 1) ? "e" : ""); }, | ||
week: function(c) { return "woche" + ((c !== 1) ? "n" : ""); }, | ||
day: function(c) { return "tag" + ((c !== 1) ? "e" : ""); }, | ||
hour: function(c) { return "stunde" + ((c !== 1) ? "n" : ""); }, | ||
minute: function(c) { return "minute" + ((c !== 1) ? "n" : ""); }, | ||
second: function(c) { return "sekunde" + ((c !== 1) ? "n" : ""); }, | ||
millisecond: function(c) { return "millisekunde" + ((c !== 1) ? "n" : ""); } | ||
} | ||
@@ -142,0 +160,0 @@ }; |
{ | ||
"name": "humanize-duration", | ||
"author": "Evan Hahn", | ||
"version": "0.4.1", | ||
"description": "Convert millisecond durations to English (or a few other languages).", | ||
"version": "0.6.0", | ||
"description": "Convert millisecond durations to English or many other languages.", | ||
"main": "humanize-duration.js", | ||
@@ -11,3 +11,3 @@ "scripts": { | ||
"devDependencies": { | ||
"mocha": "1.14.x", | ||
"mocha": "1.17.x", | ||
"chai": "1.8.x", | ||
@@ -17,11 +17,6 @@ "sugar": "1.4.x" | ||
"keywords": [ | ||
"humanize", | ||
"duration", | ||
"time", | ||
"hours", | ||
"minutes", | ||
"seconds", | ||
"days", | ||
"years", | ||
"months" | ||
"humanize", "duration", | ||
"time", "hours", "minutes", "seconds", "days", "years", "months", | ||
"english", "spanish", "french", "catalan", "portuguese", "korean", | ||
"norwegian", "german" | ||
], | ||
@@ -28,0 +23,0 @@ "jshintConfig": { |
@@ -24,3 +24,3 @@ Humanize Duration | ||
In the Node (after installing [the package](https://npmjs.org/package/humanize-duration)): | ||
In Node or Browserify (after installing [the package](https://npmjs.org/package/humanize-duration)): | ||
@@ -38,5 +38,7 @@ var humanizeDuration = require("humanize-duration"); | ||
* Korean (ko) | ||
* Norwegian (nob) | ||
* German (de) | ||
Lovingly made by [Evan Hahn](http://evanhahn.com/) with language support by [Martin Prins](https://github.com/magarcia). Thanks to [Filipi Siqueira](https://github.com/filipi777) for Portuguese support. | ||
Lovingly made by [Evan Hahn](http://evanhahn.com/) with language support by [Martin Prins](https://github.com/magarcia). Thanks to [Filipi Siqueira](https://github.com/filipi777) for Portuguese support and to [Peter Rekdal Sunde](Peter Rekdal Sunde) for Norwegian support. | ||
Enjoy! |
@@ -5,8 +5,5 @@ /* We'll test things with the Number object, | ||
var chai = require("chai"); | ||
var humanizing = require("../humanize-duration"); | ||
require("sugar"); | ||
require("chai").should(); | ||
chai.should(); | ||
describe("English humanization of duration", function() { | ||
@@ -13,0 +10,0 @@ |
@@ -1,7 +0,4 @@ | ||
var chai = require("chai"); | ||
var humanizing = require("../humanize-duration"); | ||
require("sugar"); | ||
require("chai").should(); | ||
chai.should(); | ||
describe("French humanization of duration", function() { | ||
@@ -8,0 +5,0 @@ |
@@ -1,7 +0,4 @@ | ||
var chai = require("chai"); | ||
var humanizing = require("../humanize-duration"); | ||
require("sugar"); | ||
require("chai").should(); | ||
chai.should(); | ||
describe("Korean humanization of duration", function() { | ||
@@ -8,0 +5,0 @@ |
@@ -1,7 +0,4 @@ | ||
var chai = require("chai"); | ||
var humanizing = require("../humanize-duration"); | ||
require("sugar"); | ||
require("chai").should(); | ||
chai.should(); | ||
describe("French humanization of duration", function() { | ||
@@ -8,0 +5,0 @@ |
@@ -1,7 +0,4 @@ | ||
var chai = require("chai"); | ||
var humanizing = require("../humanize-duration"); | ||
require("sugar"); | ||
require("chai").should(); | ||
chai.should(); | ||
describe("Spanish humanization of duration", function() { | ||
@@ -8,0 +5,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32491
14
608
43