aramaic-number
v1.0.6
Published
Convert numbers to aramaic letters and back.
Downloads
6
Maintainers
Readme
aramaic-number
Convert numbers to aramaic letters and back.
Installation
In order to use this library, Node.js should be installed. Then run:
npm install aramaic-number --save
Following bundles are available:
aramaic-number.js
- UMD ES5 version for use in browser, node, etc.aramaic-number.min.js
- minified version ofaramaic-number.js
aramaic-number.esm.js
- ES6 module version, suitable for bundling with other libraries and applications
The package could also be downloaded directly from: https://registry.npmjs.org/aramaic-number/-/aramaic-number-1.0.6.tgz
More information
License
Contributing
The final goal for this work is to learn the Word of God as recorded by Peshitta. You are welcomed to improve this implementation or provide feedback. Please feel free to Fork, create a Pull Request or submit Issues.
To read quick updates about Peshitta app or post questions or feedback, follow @peshittap at or
Development
npm install
npm run build
API Reference
aramaicNumber.AramaicNumber
Convert numbers to/from various Aramaic writings. hebrew
syriac
and cal
are supported at this time.
Kind: static class of aramaicNumber
new AramaicNumber(writing)
| Param | Type | Description |
| --- | --- | --- |
| writing | string | undefined | can be: hebrew
, syriac
or cal
. Defaults to cal
, if value is not provided. |
aramaicNumber.getNumber(number, limit) ⇒ string
Get number in alphabetic form if input is number, or numeric form if input
is alphabetic. When passing a string, by default, it will be treated as
ordered. By passing truthy
as a second parameter, it will just add up the
letter numeric values, regardless of position.
When passing a number, a second parameter is available, limit
. This will
limit the length of the returned string to a number of digits. For example:
getNumber(5774) // התשע״ד - ordinary
getNumber(5774, 3) // תשע״ד - truncated to 774
getNumber(5774, 7) // התשע״ד - kept at 5774
Kind: instance method of AramaicNumber
Returns: string - converted number
| Param | Type | Description | | --- | --- | --- | | number | string | input number to be converted | | limit | number | boolean | undefined | maximum number of characters |