{"id":19175318,"url":"https://github.com/andrepolischuk/typographic-numbers","last_synced_at":"2025-05-07T19:09:42.416Z","repository":{"id":30779480,"uuid":"34336300","full_name":"andrepolischuk/typographic-numbers","owner":"andrepolischuk","description":"Micro module for formatting numbers","archived":false,"fork":false,"pushed_at":"2017-04-20T08:50:57.000Z","size":21,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-08T09:58:23.463Z","etag":null,"topics":["numbers","textr","textr-plugins","typography"],"latest_commit_sha":null,"homepage":null,"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/andrepolischuk.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}},"created_at":"2015-04-21T15:40:18.000Z","updated_at":"2024-08-12T10:52:04.000Z","dependencies_parsed_at":"2022-09-14T18:00:39.824Z","dependency_job_id":null,"html_url":"https://github.com/andrepolischuk/typographic-numbers","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrepolischuk%2Ftypographic-numbers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrepolischuk%2Ftypographic-numbers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrepolischuk%2Ftypographic-numbers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrepolischuk%2Ftypographic-numbers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrepolischuk","download_url":"https://codeload.github.com/andrepolischuk/typographic-numbers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223813410,"owners_count":17207269,"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":["numbers","textr","textr-plugins","typography"],"created_at":"2024-11-09T10:22:36.483Z","updated_at":"2024-11-09T10:22:37.256Z","avatar_url":"https://github.com/andrepolischuk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typographic-numbers [![Build Status][travis-image]][travis-url]\n\n\u003e Micro module for formatting numbers\n\n## Install\n\n```sh\nnpm install --save typographic-numbers\n```\n\n## Usage\n\nUse typographic numbers depending on your locale for proper thousand separator and decimal point.\nUse [ISO 639][iso-639] codes to specify locale, example `en-uk`, `ru-ru`, `da`.\nThis module is based on [`typographic-numbers-l10n-db`][db] and choosing proper symbols for every locale.\n\n```js\nimport numbers from 'typographic-numbers';\n\nnumbers('15215', { locale: 'en-us' }); // 15,215\nnumbers('9015215.215', { locale: 'en-us' }); // 9,015,215.215\nnumbers('15215 and 15215,215', { locale: 'en-us' }); // 15,215 and 15,215.215\nnumbers('9015215.215', { locale: 'ru-ru' }); // 9 015 215,215\n```\n\n## API\n\n### numbers(input, options)\n\n#### input\n\nType: `string`\n\nText for transform.\n\n#### options\n\nType: `object`\n\nOptions to pass locale for proper separator and point symbols.\n\n## License\n\nMIT\n\n[travis-url]: https://travis-ci.org/andrepolischuk/typographic-numbers\n[travis-image]: https://travis-ci.org/andrepolischuk/typographic-numbers.svg?branch=master\n\n[iso-639]: http://www.wikiwand.com/en/List_of_ISO_639-1_codes\n[db]: https://github.com/andrepolischuk/typographic-numbers-l10n-db\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrepolischuk%2Ftypographic-numbers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrepolischuk%2Ftypographic-numbers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrepolischuk%2Ftypographic-numbers/lists"}