Gathering detailed insights and metrics for @zkochan/mdast-util-to-string
Gathering detailed insights and metrics for @zkochan/mdast-util-to-string
Gathering detailed insights and metrics for @zkochan/mdast-util-to-string
Gathering detailed insights and metrics for @zkochan/mdast-util-to-string
utility to get the plain text content of an mdast node
npm install @zkochan/mdast-util-to-string
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
40 Stars
133 Commits
9 Forks
9 Watchers
1 Branches
12 Contributors
Updated on Jan 21, 2025
Latest Version
0.1.0
Package Id
@zkochan/mdast-util-to-string@0.1.0
Size
2.88 kB
NPM Version
3.8.1
Node Version
5.11.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
remark utility to get the plain text content of an mdast node.
npm:
1npm install mdast-util-to-string
mdast-util-to-string is also available for duo, and as an AMD, CommonJS, and globals module, uncompressed and compressed.
1/* 2 * Dependencies. 3 */ 4 5var remark = require('remark'); 6var toString = require('mdast-util-to-string'); 7 8/* 9 * AST. 10 */ 11 12var ast = remark.parse('Some *emphasis*, **strongness**, and `code`.'); 13 14toString(ast); 15// 'Some emphasis, strongness, and code.'
toString(node)
Get the text content of a node.
The algorithm checks value
of node
, then alt
, and finally title
.
If no value is found, the algorithm checks the children of node
and
joins them (without spaces or newlines).
This is not a markdown to plain-text library. Use strip-markdown for that.
Parameters:
node
(Node
).Returns: string
— text representation of node
.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
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
Score
Last Scanned on 2025-07-07
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