Gathering detailed insights and metrics for @revolist/revogrid-column-numeral
Gathering detailed insights and metrics for @revolist/revogrid-column-numeral
Gathering detailed insights and metrics for @revolist/revogrid-column-numeral
Gathering detailed insights and metrics for @revolist/revogrid-column-numeral
Numeral.js RevoGrid column type
npm install @revolist/revogrid-column-numeral
Typescript
Module System
Node Version
NPM Version
68.7
Supply Chain
81.5
Quality
80.5
Maintenance
100
Vulnerability
100
License
TypeScript (59.71%)
JavaScript (40.29%)
Total Downloads
195,523
Last Day
295
Last Week
1,667
Last Month
6,703
Last Year
60,469
MIT License
3 Stars
29 Commits
3 Forks
2 Watchers
8 Branches
2 Contributors
Updated on Feb 19, 2025
Minified
Minified + Gzipped
Latest Version
2.0.8
Package Id
@revolist/revogrid-column-numeral@2.0.8
Unpacked Size
8.32 kB
Size
3.59 kB
File Count
6
NPM Version
10.9.2
Node Version
22.13.1
Published on
Feb 19, 2025
Cumulative downloads
Total Downloads
Last Day
69.5%
295
Compared to previous day
Last Week
9.4%
1,667
Compared to previous week
Last Month
-4.2%
6,703
Compared to previous month
Last Year
14.5%
60,469
Compared to previous year
1
This repo is read-only and will be deprecated in v5+ in favor of monorepos. Post issues here. Happy coding! 🖥️💻
Number column type for RevoGrid system based on numeraljs library.
Use any format you love to assign number format for your grid.
npm i @revolist/revogrid-column-numeral
Number | Format | String |
---|---|---|
10000 | '0,0.0000' | 10,000.0000 |
10000.23 | '0,0' | 10,000 |
10000.23 | '+0,0' | +10,000 |
-10000 | '0,0.0' | -10,000.0 |
10000.1234 | '0.000' | 10000.123 |
100.1234 | '00000' | 00100 |
1000.1234 | '000000,0' | 001,000 |
10 | '000.00' | 010.00 |
10000.1234 | '0[.]00000' | 10000.12340 |
-10000 | '(0,0.0000)' | (10,000.0000) |
-0.23 | '.00' | -.23 |
-0.23 | '(.00)' | (.23) |
0.23 | '0.00000' | 0.23000 |
0.23 | '0.0[0000]' | 0.23 |
1230974 | '0.0a' | 1.2m |
1460 | '0 a' | 1 k |
-104000 | '0a' | -104k |
1 | '0o' | 1st |
100 | '0o' | 100th |
Number | Format | String |
---|---|---|
1000.234 | '$0,0.00' | $1,000.23 |
1000.2 | '0,0[.]00 $' | 1,000.20 $ |
1001 | '$ 0,0[.]00' | $ 1,001 |
-1000.234 | '($0,0)' | ($1,000) |
-1000.234 | '$0.00' | -$1000.23 |
1230974 | '($ 0.00 a)' | $ 1.23 m |
1import NumberColumnType from '@revolist/revogrid-column-numeral'; 2const columnTypes = { 3 'numeric': new NumberColumnType('0,0') 4}; 5const columns = [ 6 { 7 prop: 'Num', 8 name: 'My number', 9 columnType: 'numeric' 10 }, 11 { 12 prop: 'Num2', 13 name: 'My number2', 14 columnType: 'numeric' 15 } 16]; 17const rows = [{ 18 'Num': 1000, 19 'Num2': 1000 20}]; 21 22const grid = document.querySelector('revo-grid'); 23grid.columnTypes = columnTypes; 24grid.source = rows; 25grid.columns = columns; 26 27 28// '1,000'
If you need to get numeric library instance you can do this as simple as:
1import NumberColumnType from '@revolist/revogrid-column-numeral'; 2const numeral = NumberColumnType.getNumeralInstance; 3 4numeral.register('format', 'percentage', {});
Also plugin provides access to beforeValueFormatted instance: emiter?: (event: string, instance: Numeral)
1import NumberColumnType from '@revolist/revogrid-column-numeral'; 2const columnTypes = { 3 'numeric': new NumberColumnType('0,0', (eventName, numeralInstance) => { 4 // numeralInstance operations 5 }), 6};
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/21 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
14 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-04-28
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More