Gathering detailed insights and metrics for ansi-html-community
Gathering detailed insights and metrics for ansi-html-community
An elegant lib that converts the chalked text to HTML.
npm install ansi-html-community
Typescript
Module System
Node Version
NPM Version
99.9
Supply Chain
85.8
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,590,504,129
Last Day
2,372,812
Last Week
11,992,361
Last Month
39,181,287
Last Year
585,777,136
19 Stars
36 Commits
1 Forks
3 Watching
4 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.8
Package Id
ansi-html-community@0.0.8
Size
7.32 kB
NPM Version
7.21.0
Node Version
16.8.0
Publised On
05 Sept 2021
Cumulative downloads
Total Downloads
Last day
6.9%
2,372,812
Compared to previous day
Last week
12.3%
11,992,361
Compared to previous week
Last month
-26.2%
39,181,287
Compared to previous month
Last year
6.1%
585,777,136
Compared to previous year
An elegant lib that converts the chalked (ANSI) text to HTML.
$ npm install ansi-html-community
1var ansiHTML = require('ansi-html-community'); 2var str = ansiHTML('[ANSI_TEXT]');
e.g.:
1var chalk = require('chalk'); 2 3var str = chalk.bold.red('foo') + ' bar'; 4console.log('[ANSI]', str) 5console.log('[HTML]', ansiHTML(str));
See complete examples under test
/ examples
directory.
1ansiHTML.setColors({ 2 reset: ['555', '666'], // FOREGROUND-COLOR or [FOREGROUND-COLOR] or [, BACKGROUND-COLOR] or [FOREGROUND-COLOR, BACKGROUND-COLOR] 3 black: 'aaa', // String 4 red: 'bbb', 5 green: 'ccc', 6 yellow: 'ddd', 7 blue: 'eee', 8 magenta: 'fff', 9 cyan: '999', 10 lightgrey: '888', 11 darkgrey: '777' 12});
1ansiHTML.reset();
1var openTags = ansiHTML.tags.open; 2var closeTags = ansiHTML.tags.close;
$ npm install -l
$ npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/24 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
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
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-13
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