{"id":15640991,"url":"https://github.com/tiagodanin/number-label","last_synced_at":"2026-03-04T22:31:08.419Z","repository":{"id":34246425,"uuid":"173600878","full_name":"TiagoDanin/Number-Label","owner":"TiagoDanin","description":"Convert a large number to nice formatted string","archived":false,"fork":false,"pushed_at":"2025-05-19T00:56:05.000Z","size":15,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-12T16:56:38.271Z","etag":null,"topics":["label","number","si","string","units"],"latest_commit_sha":null,"homepage":"","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/TiagoDanin.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,"zenodo":null}},"created_at":"2019-03-03T16:36:45.000Z","updated_at":"2019-05-11T18:43:05.000Z","dependencies_parsed_at":"2023-11-23T06:23:28.935Z","dependency_job_id":"7da0348b-1cbf-4232-91b1-5b6a77ac8c12","html_url":"https://github.com/TiagoDanin/Number-Label","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"f9512f66e09ef15799dfb477da9315cc7f4c01e7"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/TiagoDanin/Number-Label","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FNumber-Label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FNumber-Label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FNumber-Label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FNumber-Label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TiagoDanin","download_url":"https://codeload.github.com/TiagoDanin/Number-Label/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FNumber-Label/sbom","scorecard":{"id":141385,"data":{"date":"2025-08-11","repo":{"name":"github.com/TiagoDanin/Number-Label","commit":"f9512f66e09ef15799dfb477da9315cc7f4c01e7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T08:13:37.593Z","repository_id":34246425,"created_at":"2025-08-16T08:13:37.593Z","updated_at":"2025-08-16T08:13:37.593Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281891794,"owners_count":26579378,"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","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["label","number","si","string","units"],"created_at":"2024-10-03T11:40:53.387Z","updated_at":"2025-10-30T22:20:49.334Z","avatar_url":"https://github.com/TiagoDanin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Number Label\n[![Node](https://img.shields.io/node/v/numberlabel.svg?style=flat-square)](https://npmjs.org/package/numberlabel)\n[![Version](https://img.shields.io/npm/v/numberlabel.svg?style=flat-square)](https://npmjs.org/package/numberlabel)\n[![Downloads](https://img.shields.io/npm/dt/numberlabel.svg?style=flat-square)](https://npmjs.org/package/numberlabel)\n[![Travis](https://img.shields.io/travis/TiagoDanin/Number-Label.svg?branch=master\u0026style=flat-square)](https://travis-ci.org/TiagoDanin/Number-Label)\n\nConvert a large number to nice formatted string.\n\n## Features\n- No dependencies\n- Easy to Use\n- Use the International System of Units (SI)\n\n## Installation\nModule available through the\n[npm registry](https://www.npmjs.com/). It can be installed using the\n[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)\nor\n[`yarn`](https://yarnpkg.com/en/)\ncommand line tools.\n\n```sh\n# NPM\nnpm install numberlabel --save\n# Or Using Yarn\nyarn add numberlabel\n```\n\n## Usage\n```js\nconst label = require('numberlabel')\n\n//Amounts\nlabel.amounts //[{pow, name, symbo, prefix...\n\n//Convert(number, type[prefix, symbol, prefix], {start: 0, toFixed: 2})\nlabel.convert(1567000, 'name') //''1.57 Million'\nlabel.convert(1567000, 'symbol') //'1.27M'\nlabel.convert(1567000, 'prefix') //'1.57 Mega'\n\nlabel.convert(100, 'prefix', {start: 500}) //'100'\nlabel.convert(100, 'prefix', {start: 500, toFixed: 4}) //'1.0000'\nlabel.convert(100, 'prefix', {start: 500, toFixed: 4}) //'7.0000 Hecto'\n\nlabel.convert(0.00101) //'1.01 Thousandth'\n\n//getLabel(number, {start: 0, toFixed: 2, type: type[prefix, symbol, prefix]})\nlabel.getLabel(100, {type: 'prefix'}) //{number:'1.00', pow: 2,...\n\n```\n\n## Tests\nTo run the test suite, first install the dependencies, then run `test`:\n\n```sh\n# NPM\nnpm test\n# Or Using Yarn\nyarn test\n```\n\n## Dependencies\nNone\n\n\n## Related\n- [bytelabel](https://ghub.io/bytelabel): convert byte lengths into a nice formatted string\n\n## Contributors\nPull requests and stars are always welcome. For bugs and feature requests, please [create an issue](https://github.com/TiagoDanin/Number-Label/issues). [List of all contributors](https://github.com/TiagoDanin/Number-Label/graphs/contributors).\n\n\n## License\n[MIT](LICENSE) © [Tiago Danin](https://TiagoDanin.github.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiagodanin%2Fnumber-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiagodanin%2Fnumber-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiagodanin%2Fnumber-label/lists"}