![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
mkast
Advanced tools
Readme
Converts nodes to and from JSON
Transforms commonmark nodes to and from JSON for piping between processes.
npm i mkast
Serialize commonmark nodes to line-delimited JSON:
var mkast = require('mkast')
, ast = mkast.parse('# Title\n<? @include file.md ?>');
mkast.serialize(ast).pipe(process.stdout);
For more information see the api docs.
parser(stream[, cb])
Parse line-delimited JSON to vanilla objects.
When a callback function is given it is added as a listener for
the error
and finish
events on the parser stream.
Returns the parser stream.
stream
Object input stream.cb
Function callback function.deserialize([stream][, cb])
Deserialize line-delimited JSON to commonmark nodes.
When a callback function is given it is added as a listener for
the error
and eof
events on the deserializer stream.
The eof
event can fire multiple times so the callback may be called
multiple times.
Returns the deserializer stream.
stream
Object input stream.cb
Function callback function.serialize(node[, opts][, cb])
Serialize a commonmark AST node to line-delimited JSON.
When the node is of the document
type it's direct descendants are
detached from the document and streamed as independent lines. So that
consumers of the stream will know when the document ends a node
with an eof
type is sent to indicate the end of file (EOF).
When injecting documents into a stream it may be desirable to disable this behaviour, to do so use:
{eof: false}
When a callback function is given it is added as a listener for
the error
and finish
events on the serializer stream.
Returns the serializer stream.
node
Object input AST node.opts
Object processing options.cb
Function callback function.MIT
Created by mkdoc on April 2, 2016
FAQs
Abstract syntax tree transformer
The npm package mkast receives a total of 430 weekly downloads. As such, mkast popularity was classified as not popular.
We found that mkast 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 now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.