npm

Need private packages and team management tools?Check out npm Orgs. »

aramaic-number

1.0.6 • Public • Published

aramaic-number

npm version npm module downloads Build Status License: MIT Dependency Status Coverage Status Gitter

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 of aramaic-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

Peshitta App

Beth Mardutho

CAL

License

MIT

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 @peshittapor Gitter

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

install

npm i aramaic-number

Downloadsweekly downloads

2

version

1.0.6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability