{"id":15381301,"url":"https://github.com/revolist/revogrid-column-numeral","last_synced_at":"2026-03-04T19:03:34.611Z","repository":{"id":42695925,"uuid":"306625308","full_name":"revolist/revogrid-column-numeral","owner":"revolist","description":"Numeral.js RevoGrid column type","archived":false,"fork":false,"pushed_at":"2025-11-21T11:29:52.000Z","size":170,"stargazers_count":3,"open_issues_count":8,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-21T13:16:37.631Z","etag":null,"topics":["datagrid","excel","grid","numeral","numeraljs","reactgrid","revogrid","vuegrid"],"latest_commit_sha":null,"homepage":"https://github.com/revolist/revogrid","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/revolist.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":"2020-10-23T12:10:41.000Z","updated_at":"2025-11-21T11:29:24.000Z","dependencies_parsed_at":"2024-02-03T18:01:29.468Z","dependency_job_id":"35e1f00b-6e04-485c-9952-438d722c774a","html_url":"https://github.com/revolist/revogrid-column-numeral","commit_stats":{"total_commits":15,"total_committers":4,"mean_commits":3.75,"dds":0.6666666666666667,"last_synced_commit":"6d503994fd06744b02445224bad7eb1c9fdb418d"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/revolist/revogrid-column-numeral","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolist%2Frevogrid-column-numeral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolist%2Frevogrid-column-numeral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolist%2Frevogrid-column-numeral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolist%2Frevogrid-column-numeral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revolist","download_url":"https://codeload.github.com/revolist/revogrid-column-numeral/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolist%2Frevogrid-column-numeral/sbom","scorecard":{"id":772829,"data":{"date":"2025-08-11","repo":{"name":"github.com/revolist/revogrid-column-numeral","commit":"66a001a52b1886945059a24d412efbf9c07b4192"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/revolist/revogrid-column-numeral/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/revolist/revogrid-column-numeral/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/revolist/revogrid-column-numeral/publish.yml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"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":"Code-Review","score":0,"reason":"Found 0/21 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel permissions set to 'write-all': .github/workflows/publish.yml:5"],"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":"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":"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish.yml:7"],"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":"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 'main'"],"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T02:39:23.699Z","repository_id":42695925,"created_at":"2025-08-23T02:39:23.699Z","updated_at":"2025-08-23T02:39:23.699Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30086511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T15:40:14.053Z","status":"ssl_error","status_checked_at":"2026-03-04T15:40:13.655Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["datagrid","excel","grid","numeral","numeraljs","reactgrid","revogrid","vuegrid"],"created_at":"2024-10-01T14:26:39.103Z","updated_at":"2026-03-04T19:03:34.585Z","avatar_url":"https://github.com/revolist.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 🚨 Repository Notice 🚨\n\nThis repo is read-only and will be **deprecated** in v5+ in favor of monorepos. Post issues [here](https://github.com/revolist/revogrid). Happy coding! 🖥️💻\n\n---\n\n# Number Column Type\nNumber column type for RevoGrid system based on [numeraljs](http://numeraljs.com) library.\n\nUse any format you love to assign number format for your grid.\n\n## Installation\n\n```\nnpm i @revolist/revogrid-column-numeral\n```\n\n## Output\n\n### Number\n\n|Number|Format|String|\n|--- |--- |--- |\n|10000|'0,0.0000'|10,000.0000|\n|10000.23|'0,0'|10,000|\n|10000.23|'+0,0'|+10,000|\n|-10000|'0,0.0'|-10,000.0|\n|10000.1234|'0.000'|10000.123|\n|100.1234|'00000'|00100|\n|1000.1234|'000000,0'|001,000|\n|10|'000.00'|010.00|\n|10000.1234|'0[.]00000'|10000.12340|\n|-10000|'(0,0.0000)'|(10,000.0000)|\n|-0.23|'.00'|-.23|\n|-0.23|'(.00)'|(.23)|\n|0.23|'0.00000'|0.23000|\n|0.23|'0.0[0000]'|0.23|\n|1230974|'0.0a'|1.2m|\n|1460|'0 a'|1 k|\n|-104000|'0a'|-104k|\n|1|'0o'|1st|\n|100|'0o'|100th|\n\n### Currency\n\n|Number|Format|String|\n|--- |--- |--- |\n|1000.234|'$0,0.00'|$1,000.23|\n|1000.2|'0,0[.]00 $'|1,000.20 $|\n|1001|'$ 0,0[.]00'|$ 1,001|\n|-1000.234|'($0,0)'|($1,000)|\n|-1000.234|'$0.00'|-$1000.23|\n|1230974|'($ 0.00 a)'|$ 1.23 m|\n\n\n\n## Usage in revo-grid:\n\n```js\nimport NumberColumnType from '@revolist/revogrid-column-numeral';\nconst columnTypes = {\n    'numeric': new NumberColumnType('0,0')\n};\nconst columns = [\n    {\n        prop: 'Num',\n        name: 'My number',\n        columnType: 'numeric'\n    },\n    {\n        prop: 'Num2',\n        name: 'My number2',\n        columnType: 'numeric'\n    }\n];\nconst rows = [{\n    'Num': 1000,\n    'Num2': 1000\n}];\n\nconst grid = document.querySelector('revo-grid');\ngrid.columnTypes = columnTypes;\ngrid.source = rows;\ngrid.columns = columns;\n\n\n// '1,000'\n```\n\n\n\n## Advanced\n\nIf you need to get numeric library instance you can do this as simple as:\n\n```js\nimport NumberColumnType from '@revolist/revogrid-column-numeral';\nconst numeral = NumberColumnType.getNumeralInstance;\n\nnumeral.register('format', 'percentage', {});\n```\n\nAlso plugin provides access to beforeValueFormatted instance:\nemiter?: (event: string, instance: Numeral)\n\n```js\nimport NumberColumnType from '@revolist/revogrid-column-numeral';\nconst columnTypes = {\n    'numeric': new NumberColumnType('0,0', (eventName, numeralInstance) =\u003e {\n        // numeralInstance operations\n    }),\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevolist%2Frevogrid-column-numeral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevolist%2Frevogrid-column-numeral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevolist%2Frevogrid-column-numeral/lists"}