@softwarerero/numbertoword
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -28,2 +28,3 @@ const H = require('./helpers.js') | ||
if (hundreds === 1) return decs === 0 ? 'hundert' : `ein hundert ${decades(decs)}` | ||
if (decs === 0) return `${UNITS[hundreds]} hundert` | ||
return `${UNITS[hundreds]} hundert ${decades(decs)}` | ||
@@ -30,0 +31,0 @@ } |
@@ -28,2 +28,3 @@ const H = require('./helpers.js') | ||
if (hundreds === 1) return decs === 0 ? 'hundred' : `one hundred and ${decades(decs)}` | ||
if (decs === 0) return `${UNITS[hundreds]} hundred` | ||
return `${UNITS[hundreds]} hundred and ${decades(decs)}` | ||
@@ -30,0 +31,0 @@ } |
@@ -27,2 +27,3 @@ const H = require('./helpers.js') | ||
if (hundreds === 1) return decs === 0 ? 'cien' : `ciento${decades(decs)}` | ||
if (decs === 0) return HUNDREDS[hundreds - 1] | ||
return `${HUNDREDS[hundreds - 1]}${decades(decs)}` | ||
@@ -29,0 +30,0 @@ } |
{ | ||
"name": "@softwarerero/numbertoword", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Convert numbers to words", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -49,2 +49,5 @@ const assert = require('assert') | ||
it('8612910', equal(8612910, 'acht millionen sechs hundert zwölf tausend neun hundert zehn')) | ||
it('1200000', equal(1200000, 'eine million zwei hundert tausend')) | ||
it('1220000', equal(1220000, 'eine million zwei hundert zwanzig tausend')) | ||
it('1900020', equal(1900020, 'eine million neun hundert tausend zwanzig')) | ||
}) | ||
@@ -51,0 +54,0 @@ |
@@ -49,2 +49,4 @@ const assert = require('assert') | ||
it('8612910', equal(8612910, 'eight millions six hundred and twelve thousand nine hundred and ten')) | ||
it('1200000', equal(1200000, 'one million two hundred thousand')) | ||
it('1220000', equal(1220000, 'one million two hundred and twenty thousand')) | ||
}) | ||
@@ -51,0 +53,0 @@ |
@@ -51,2 +51,4 @@ const assert = require('assert') | ||
it('8612910', equal(8612910, 'ocho millones seiscientosdoce mil novecientosdiez')) | ||
it('1200000', equal(1200000, 'un millon doscientos mil')) | ||
it('1220000', equal(1220000, 'un millon doscientosveinte mil')) | ||
}) | ||
@@ -53,0 +55,0 @@ |
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
19465
345