Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 17, 2024 via pnpm

mdast-util-to-string 1.0.3

Utility to get the plain text content of a node
Package summary
Share
2
issues
2
high severity
meta
2
6
licenses
95
MIT
7
BSD-2-Clause
6
ISC
8
other licenses
Apache-2.0
5
BSD-3-Clause
2
Python-2.0
1
Package created
2 Jul 2015
Version published
12 Jun 2017
Maintainers
2
Total deps
116
Direct deps
1
License
MIT

Issues

2

2 high severity issues

high
via: eslint-plugin-ava@4.5.1
via: eslint-plugin-ava@4.5.1
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
95 Packages, Including:
@eslint-community/eslint-utils@4.4.0
@eslint-community/regexpp@4.10.0
@eslint/eslintrc@3.0.2
@eslint/js@9.2.0
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
acorn-jsx@3.0.1
acorn-jsx@5.3.2
acorn@3.3.0
acorn@5.7.4
acorn@8.11.3
ajv@6.12.6
ansi-regex@5.0.1
ansi-styles@4.3.0
array-differ@1.0.0
array-union@1.0.2
array-uniq@1.0.3
arrify@1.0.1
balanced-match@1.0.2
brace-expansion@1.1.11
buf-compare@1.0.1
callsites@3.1.0
chalk@4.1.2
color-convert@2.0.1
color-name@1.1.4
concat-map@0.0.1
core-assert@0.2.1
core-js@2.6.12
cross-spawn@7.0.3
debug@4.3.4
deep-is@0.1.4
deep-strict-equal@0.2.0
enhance-visitors@1.0.0
escape-string-regexp@4.0.0
eslint-plugin-ava@4.5.1
eslint@9.2.0
espurify@1.8.1
fast-deep-equal@3.1.3
fast-json-stable-stringify@2.1.0
fast-levenshtein@2.0.6
file-entry-cache@8.0.0
find-up@2.1.0
find-up@5.0.0
flat-cache@4.0.1
globals@14.0.0
has-flag@4.0.0
ignore@5.3.1
import-fresh@3.3.0
import-modules@1.1.0

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
eslint-scope@8.0.1
espree@10.0.1
espree@3.5.4
esrecurse@4.3.0
estraverse@5.3.0
esutils@2.0.3
uri-js@4.4.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
fastq@1.17.1
flatted@3.3.1
glob-parent@6.0.2
isexe@2.0.0
minimatch@3.1.2
which@2.0.2

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
5 Packages, Including:
@humanwhocodes/config-array@0.13.0
@humanwhocodes/module-importer@1.0.1
@humanwhocodes/retry@0.2.4
eslint-visitor-keys@3.4.3
eslint-visitor-keys@4.0.0

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
@humanwhocodes/object-schema@2.0.3
esquery@1.5.0

Python License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
state-changes
1 Packages, Including:
argparse@2.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of mdast-util-to-string 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
eslint-plugin-ava4.5.111.45 kBMIT
prod
2

Visualizations

Frequently Asked Questions

What does mdast-util-to-string do?

mdast-util-to-string is a fantastic tool that fetches the text content of a specific node. With assistance from this JavaScript utility, users can easily extract the plain text inside a node without having to go through the markdown serialization process.

How do you use mdast-util-to-string?

The usage of mdast-util-to-string is straightforward. This package does not come with a default export; it exports the identifier toString. Below is an example on how to use this utility:

import {fromMarkdown} from 'mdast-util-from-markdown'
import {toString} from 'mdast-util-to-string'

const tree = fromMarkdown('Some _emphasis_, **importance**, and `code`.')

console.log(toString(tree)) // => 'Some emphasis, importance, and code.'

From this code snippet, we can see it's a two-step process:

First, we import the utility functions fromMarkdown and toString. Then, the fromMarkdown function is used to parse a markdown string into a tree, and finally, the toString function outputs the text content of that markdown content, stripping all the markdown syntax.

Where are the mdast-util-to-string docs?

The full documentation for mdast-util-to-string is available directly at its GitHub page, https://github.com/syntax-tree/mdast-util-to-string. This package is part of the unified collective and majorly supports Node.js versions. The documentation provides ample insights about installation, usage, options available, compatibility, security, related packages, contribution, and license involved in the use of this package.