Kyrgyz / Kazakh numbers-to-words converter

Overview

Install

npm i sandar

import:

//Common JS
const { toWord, ... } = require('sandar')

//ESM
import { toOrdinal, ... } from 'sandar'

Usage

  • Passing number as string is recommended.

toWord

Returns the textual representation of a given number.

toWord(123) //=> 'жүз жыйырма үч'

toWord(456, { lang: 'ky' }) //=> 'төрт жүз элүү алты'

toWord('789', 'kk-latin') //=> 'jetı jüz seksen toğyz'

toWord('123456789101112131415') //=> 'жүз жыйырма үч секстиллион төрт жүз элүү алты квадриллион жети жүз сексен тогуз триллион жүз бир миллиард жүз он эки миллион жүз отуз бир миң төрт жүз он беш'

toOrdinal

Returns the textual ordinal representation of a given number.

 toOrdinal(123) //=> 'жүз жыйырма үчүнчү'
 
 toOrdinal(456, { lang: 'kk' }) //=> 'төрт жүз елу алтыншы'
 
 toOrdinal('789', 'kk-latin') //=> 'jetı jüz seksen toğyzınşı'

 toOrdinal('123456789101112131415') //=> 'жүз жыйырма үч секстиллион төрт жүз элүү алты квадриллион жети жүз сексен тогуз триллион жүз бир миллиард жүз он эки миллион жүз отуз бир миң төрт жүз он бешинчи'

Licence

MIT

You might also like...

Get a verse(an aya) from the Quran during your coding session 💻 , stay connected with the words of Allah. 🕋

Get a verse(an aya) from the Quran during your coding session 💻 , stay connected with the words of Allah. 🕋

Ayat 📝 Get a verse(an aya) from the Quran during your coding session 💻 stay connected with the words of Allah. 💚 🕋 Release Notes 1.0.0 Get random

Jan 2, 2023

Find root-affix combinations of English words.

Find root-affixes of word 查找英语单词的词根词缀组合。 查找规则 直接返回小于等于长度为 2 的单词 先获取单词原形,还原复数、比较级、过去式等单词形式 再通过穷举获得所有的词根词缀组合 然后去除不完整的组合,即该拼写组合 != 单词 在所有符合条件的组合中,比较所有组合的

Dec 22, 2022

A browser/Chrome extension that replaces Leftist #trigger words with "bad thing" and "current bad thing". Inspired by Tim Pool.

BadThings browser/Chrome extension replaces Leftist #trigger words with 'bad things' and 'current bad thing'. Quickstart This project uses React 18 an

Sep 5, 2022

This package is for developers to be able to easily integrate bad word checking into their projects.\r This package can return bad words in array or regular expression (regex) form.

Vietnamese Bad Words This package is for developers to be able to easily integrate bad word checking into their projects. This package can return bad

Nov 3, 2022

A CodeMirror (v6) extension for adding relative line numbers to your code editor

Relative Line Numbers for CM6 Installation yarn add codemirror-line-numbers-relative Usage import { EditorView } from "@codemirror/view"; import { Edi

Feb 7, 2022

no-comma is a javascript library for dealing with inputted numbers that include commas

no-comma no-comma is a javascript library for dealing with inputted numbers that include commas. Nocomma will allow you to check if the number contain

Jan 27, 2022

🌐 Text Input Component for validating and formatting international phone numbers.

🌐  Text Input Component for validating and formatting international phone numbers.

React Native Intl Phone Field Try the Expo Snack 👏 🕹️ Demo It's a javascript-only (no native code) component that can run in iOS, Android, Expo & Re

Jul 8, 2022

An easy-to-use library to make your life easier when working with random numbers or random choices in javascript.

vrandom An easy-to-use library to make your life easier when working with random numbers or random choices in javascript. Table of contents Installati

Aug 16, 2022

This package will generate n numbers of thumbnails at different positions in a given video file.

This package will generate n numbers of thumbnails at different positions in a given video file.

The smallest library to generate video thumbnails on client side. About Generate n numbers of Image thumbnails of a video file. !Live Demo code sandbo

Dec 20, 2022
Owner
Timur
Professional time waster
Timur
The JavaScript currency converter plugin

currencyConverter - javascript currency converter Compatibility IE9 and up, Edge, iOS Safari 6+, Chrome 8+, Firefox 6+ Usage The currencyConverter Ins

null 3 Nov 26, 2022
Small PNG to WEBP converter, terminal based and handy for a frontend developer :D

Image Utils A small util i used while making antstack.com What does it do and how to use? It basically converts .png files to .webp Read about Webp he

Pruthvi Shetty 6 Aug 24, 2022
A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snippets.

Warm Up ?? ??‍?? A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snipp

Arhun Saday 34 Dec 12, 2022
I made countdown birthday and fireworks animation using HTML Canvas, CSS, JS. The fireworks animation gonna come out once the countdown is finished or in other words, "Birthday Time".

Countdown-Birthday-Fireworks-Animation I made countdown birthday and fireworks animation using HTML Canvas, CSS, JS. The fireworks animation gonna com

Mahardika Bayu S.B 19 Dec 31, 2022
A2er - Fun browser extension, changing all words ending with `a` to end with `er`.

a2er Fun browser extension, changing all words ending with a to end with er. This started as a joke between friends and me, pronouncing words ending w

Sebastian Schicho 1 Jan 10, 2022
pre-calculated list of similar Persian words ordered by rating and best match

similar-persian-words pre-calculated list of similar Persian words ordered by rating and best match. Install npm: npm install similar-persian-words Us

peyman farahmand 6 May 29, 2022
List of ~240,000 Persian words

an-array-of-persian-words List of ~240,000 English words. Derived from the Dehkhoda dictionary. Install npm: npm install an-array-of-persian-words Use

peyman farahmand 3 Mar 16, 2022
A js program generate random 12 words metamask mnemonic and check the balance in the account.

Metamask-Mnemonic-Brute-Force A js program random generate 12 words metamask mnemonic and check the balance in the account. Requirement ethers web3 bi

Xeift 30 Dec 25, 2022
🧐 Precisely count words

Count Words Precisely count words. Usage The API is the same on all this platforms ✔️ Deno ?? import { countWords } from "https://deno.land/x/count_wo

Eliaz Bobadilla 4 Jun 24, 2022
A word list of the most common safe English words.

@cnakazawa/safe-word-list This package contains a list of about 2900 of the most used safe words in English with at least three characters or more. in

Christoph Nakazawa 9 Oct 8, 2022