{"id":19509833,"url":"https://github.com/mleko/js-prefix-si","last_synced_at":"2025-02-25T22:44:58.504Z","repository":{"id":57329727,"uuid":"56833610","full_name":"mleko/js-prefix-si","owner":"mleko","description":"SI, IEC, BS1852 compatible number formatter","archived":false,"fork":false,"pushed_at":"2017-10-12T20:05:45.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T12:26:29.895Z","etag":null,"topics":["bs1852","iec","prefix","si","typescript"],"latest_commit_sha":null,"homepage":"","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/mleko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-22T07:00:03.000Z","updated_at":"2017-05-22T16:39:14.000Z","dependencies_parsed_at":"2022-09-26T21:01:42.479Z","dependency_job_id":null,"html_url":"https://github.com/mleko/js-prefix-si","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/mleko%2Fjs-prefix-si","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mleko%2Fjs-prefix-si/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mleko%2Fjs-prefix-si/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mleko%2Fjs-prefix-si/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mleko","download_url":"https://codeload.github.com/mleko/js-prefix-si/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240761122,"owners_count":19853255,"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":["bs1852","iec","prefix","si","typescript"],"created_at":"2024-11-10T23:13:31.876Z","updated_at":"2025-02-25T22:44:58.412Z","avatar_url":"https://github.com/mleko.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## prefix-si\n\nSI, IEC, BS1852 compatible number formatter\n\n\u003ca href=\"https://travis-ci.org/mleko/js-prefix-si\"\u003e\u003cimg alt=\"Travis Status\" src=\"https://travis-ci.org/mleko/js-prefix-si.svg?branch=master\u0026label=travis\u0026style=flat\"\u003e\u003c/a\u003e\n\n## Install\n\n```bash\n$ npm install prefix-si\n```\n\n## Usage\n\n```js\nprefix = require(\"prefix-si\").prefix\n// import { prefix } from \"prefix-si\"\n\n\nprefix(1024*1024, \"B\", {binary: true})\n// =\u003e \"1MiB\"\n\nprefix(1200, \"g\")\n// =\u003e \"1.2kg\"\n\nprefix(4700, \"R\", {bs1852: true})\n// =\u003e \"4K7\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmleko%2Fjs-prefix-si","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmleko%2Fjs-prefix-si","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmleko%2Fjs-prefix-si/lists"}