ordinal-spanish
v0.1.3
Published
Spanish ordinal numbers following a numeral.
Downloads
2,989
Maintainers
Readme
ordinal-spanish
English - Module to provide the Spanish ordinal letters following a numeral and gender.
Spanish - Módulo que permite la obtención de números ordinales mediante un número y el género.
Installation
$ npm install ordinal-spanish
Usage
import ordinal from 'ordinal-spanish';
ordinal(number, gender);
Numbers can be between
1 and 9999
Gender is assignable to
male
(default) orfemale
.
Example
ordinal(8763, 'female');
=> ochomilésima septingentésima sexagésima tercera