{"id":18799893,"url":"https://github.com/mcnaveen/numify","last_synced_at":"2025-04-13T17:31:06.564Z","repository":{"id":62354840,"uuid":"465347012","full_name":"mcnaveen/numify","owner":"mcnaveen","description":"Simple utility to convert long numbers to human readable format.","archived":false,"fork":false,"pushed_at":"2025-02-12T05:23:37.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T11:48:47.421Z","etag":null,"topics":["billion","human-readable","millify","million","node-module","nodejs","nodejs-modules","numify","shorten","si-unit-conversion","si-units","thousands"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/numify","language":"TypeScript","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/mcnaveen.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":"2022-03-02T14:48:11.000Z","updated_at":"2025-02-12T05:23:41.000Z","dependencies_parsed_at":"2022-10-31T10:48:56.347Z","dependency_job_id":null,"html_url":"https://github.com/mcnaveen/numify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnumify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnumify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnumify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2Fnumify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcnaveen","download_url":"https://codeload.github.com/mcnaveen/numify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248752350,"owners_count":21156077,"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":["billion","human-readable","millify","million","node-module","nodejs","nodejs-modules","numify","shorten","si-unit-conversion","si-units","thousands"],"created_at":"2024-11-07T22:16:59.760Z","updated_at":"2025-04-13T17:31:06.558Z","avatar_url":"https://github.com/mcnaveen.png","language":"TypeScript","readme":"# :1234: Numify :capital_abcd:\n\n![Test](https://github.com/mcnaveen/numify/workflows/Test/badge.svg)\n![Downloads this Week](https://img.shields.io/npm/dw/numify)\n![Bundle Size](https://img.shields.io/bundlephobia/min/numify)\n![Version](https://img.shields.io/npm/v/numify)\n\n![Numify](./image/cover.png)\n\n:unicorn: Zero dependency utility to convert long numbers to human readable format. Supports multiple locales and number formats.\n\nWorks with React, Vue, Svelte, and any other framework that supports ES6 modules.\n\n(:loudspeaker: Pronounced as \"**Num-e-fy**\")\n\n### :bulb: Currently Supported Locales\n\n- `en` - English\n- `de` - German\n- `fr` - French\n- `es` - Spanish\n- `it` - Italian\n- `se` - Swedish\n- `in` - Indian (Lakhs, Crores, etc.)\n\n| :x: Without Numify      | :white_check_mark: With Numify |\n| ----------------------- | ------------------------------ |\n| 1000 Views              | 1k Views                       |\n| 25000 Likes             | 25k Likes                      |\n| 30000 Retweets          | 30k Retweets                   |\n| 1000000 Followers       | 1M Followers                   |\n| 1000000000 Followers    | 1B Followers                   |\n| 1000000000000 Followers | 1T Followers                   |\n\n### :package: Requirements\n\nNode.js 18.x or above\n\n### :sparkles: Installation\n\nInstall the NPM Package with the below command:\n\n```\nnpm install numify --save\n```\n\n(or)\n\nInstall with Yarn:\n\n```\nyarn add numify\n```\n\n### :pen: Usage\n\nImport the module in your project:\n\n```javascript\n// Commonjs Import\nvar { numify } = require(\"numify\");\n\n// or ES6 import\nimport { numify } from \"numify\";\n```\n\n### :bulb: Example\n\nPass the Number to the function\n\n```javascript\nimport { numify } from \"numify\";\n\nconst number = numify(1000);\nconsole.log(number);\n\n\n// With options\nconst number = numify(23878437, {\n  formatType: \"in\", // \"en\", \"de\", \"fr\", \"es\", \"it\", \"se\"\n  precise: true,\n});\n\nconsole.log(number);\n```\n\n### :ballot_box_with_check: Example Output\n\n```\n1K (English)\n23.9 Cr (Indian)\n```\n\n---\n\n#### :green_heart: Message\n\nI hope you find this useful. If you have any questions, please create an issue.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcnaveen%2Fnumify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcnaveen%2Fnumify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcnaveen%2Fnumify/lists"}