german-ordinals

Ordinal numbers in German: 12 => zwölfte

Usage no npm install needed!

<script type="module">
  import germanOrdinals from 'https://cdn.skypack.dev/german-ordinals';
</script>

README

german-ordinals

A very simple Node.js module that gives the ordinal representation of numbers in German: zwölfte for 12 etc. Based on a static list. Works up to 30.

Installation

npm install german-ordinals

Usage

var ordinals = require('german-ordinals');

// zwölfte
console.log(`12 => ${ordinals.getOrdinal(12)}`);

Will throw an error when the number is too high.

dependencies and licences

N/A