Socket
Socket
Sign inDemoInstall

@softwarerero/numbertoword

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@softwarerero/numbertoword - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

1

numberToWord.de.js

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

2

package.json
{
"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 @@

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