Skip to content

karlll/siffror.js

Repository files navigation

siffror.js

Parse cardinal numbers in Swedish

Install

$ npm install siffror.js

Usage

    const s = require('siffror.js');
    const res = s.parse("åttahundraåttioåttatusenåttahundraåttioåtta");
    console.log(res);
    // > 888888

Limitations

Currently only positive integers are supported. Whitespace should be removed from the input string.

License

MIT

Author

Karl Larsaeus, <karl@ninjacontrol.com>