
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@code-blocks/parser
Advanced tools
@code-blocks/parserParses code blocks, with or without front-matter, as JSON or DSV.
import {
getMeta,
parseDsv,
parseJson,
} from '@code-blocks/parser'
getMetaExtracts meta data from front-matter. Takes the content of a code block and returns an object with two keys meta (a JSON object with the meta data) and content (the rest of the code block).
parseDsvParses the content as delimiter separated values. Takes the separator as argument and returns a function that takes the content of the code block and returns an array of JSON objects.
parseJsonParses the content as JSON. Takes the content as only argument and returns a JSON object.
FAQs
Code block parser
We found that @code-blocks/parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.