{"id":20204989,"url":"https://github.com/axdraft/number-to-cyrillic","last_synced_at":"2025-04-10T12:13:14.757Z","repository":{"id":49265020,"uuid":"133858018","full_name":"axdraft/number-to-cyrillic","owner":"axdraft","description":"Convert number to words | English, Ukrainian, and Russian","archived":false,"fork":false,"pushed_at":"2023-07-19T02:59:36.000Z","size":168,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T02:08:21.977Z","etag":null,"topics":["converts","converts-number","javascript","number-to-cyrillic","number-to-words"],"latest_commit_sha":null,"homepage":"https://npm.runkit.com/number-to-cyrillic","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axdraft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-17T19:15:44.000Z","updated_at":"2024-02-23T14:47:26.000Z","dependencies_parsed_at":"2024-11-20T10:16:00.599Z","dependency_job_id":null,"html_url":"https://github.com/axdraft/number-to-cyrillic","commit_stats":null,"previous_names":["vshashkov/number-to-cyrillic"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axdraft%2Fnumber-to-cyrillic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axdraft%2Fnumber-to-cyrillic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axdraft%2Fnumber-to-cyrillic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axdraft%2Fnumber-to-cyrillic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axdraft","download_url":"https://codeload.github.com/axdraft/number-to-cyrillic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217081,"owners_count":21066633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["converts","converts-number","javascript","number-to-cyrillic","number-to-words"],"created_at":"2024-11-14T05:16:06.377Z","updated_at":"2025-04-10T12:13:14.736Z","avatar_url":"https://github.com/axdraft.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://nodei.co/npm/number-to-cyrillic.png)](https://www.npmjs.com/package/number-to-cyrillic)\n\n# Convert number to English, Russian or Ukrainian\n\n[![npm version](https://badge.fury.io/js/number-to-cyrillic.svg)](https://badge.fury.io/js/number-to-cyrillic)\n\nConverts number to words (UAH, RUB, USD, EUR and without currency).\nThis library supports English, Ukrainian and Russian languages.\n\n## Install\n\n`npm install number-to-cyrillic`\n\n\u003cbr /\u003e\n\n`yarn add number-to-cyrillic`\n\n## Demo\n\nYou can try this library [here](https://npm.runkit.com/number-to-cyrillic).\n\n## API\n\n### `.convert(number[, options])`\n\nConverts an integer into an object witch contain value and the currency name. Optionally you can decide whether to display output with currency or not, to display a capital letter for the value\nby adding an object with some propertis. For example:\n\n```js\nvar numberToString = require('number-to-cyrillic');\n\nnumberToString.convert(21);\n// {\n//    convertedInteger: 'двадцять одна',\n//    integerCurrency: 'гривня',\n//    convertedFractional: 'нуль',\n//    fractionalCurrency: 'копійок',\n//    integer: 21,\n//    fractional: 0,\n//    shortName: 'грн.'\n// }\n\nnumberToString.convert(34, {\n  currency: 'usd'\n});\n// {\n//    convertedInteger: 'тридцять чотири',\n//    integerCurrency: 'долари США',\n//    convertedFractional: 'нуль',\n//    fractionalCurrency: 'центів',\n//    integer: 34,\n//    fractional: 0,\n//    shortName: 'долара США'\n// }\n\nnumberToString.convert(76.21, {\n  capitalize: true\n});\n// {\n//    convertedInteger: 'Сімдесят шість',\n//    integerCurrency: 'гривень',\n//    convertedFractional: 'двадцять одна',\n//    fractionalCurrency: 'копійка',\n//    integer: 76,\n//    fractional: 21,\n//    shortName: 'грн.'\n// }\n\nnumberToString.convert(76.26, {\n  language: 'en'\n});\n// {\n//    convertedInteger: 'seventy-six',\n//    integerCurrency: 'hryvnias',\n//    convertedFractional: 'twenty-six',\n//    fractionalCurrency: 'cents',\n//    integer: 76,\n//    fractional: 26,\n//    shortName: 'UAH'\n// }\n```\n\nSee detailed description of all available options below:\n\n|              Option              | Default Value | Description                                                                                                                                          |\n| :------------------------------: | :-----------: | ---------------------------------------------------------------------------------------------------------------------------------------------------- |\n|            capitalize            |  **`false`**  | By setting a value for this option to `true` you might make the first letter in uppercase                                                            |\n|             currency             |  **`'uah'`**  | By setting a value to this option to `'usd'` or `'eur'` or `'rub'` or `false` you'll get the output for selected currency name or without currency.  |\n|             language             |  **`'ua'`**   | By setting a value to this option to `'en'` or `'ru'` you'll get the output for selected language.                                                   |\n| customDecimalNameCasesForEnglish |  **`false`**  | By setting a value for this option to `true` you will change default decimal name cases for UAH and RUB in English translation to `kopek`, `kopeks`. |\n| customCurrencyPrefixForEnglish |  **none**  | By setting a value for this option to a string you will change the default currency in English translation. E.g. without prefix: `dollars`, with - `US dollars` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxdraft%2Fnumber-to-cyrillic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxdraft%2Fnumber-to-cyrillic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxdraft%2Fnumber-to-cyrillic/lists"}