Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Append or prepend a message
By default appends a message to a stream, use the message
option to change the message; to prepend set the prepend
option.
When no message is given the default generator message is used.
npm i mkmsg --save
For the command line interface install mkdoc globally (npm i -g mkdoc
).
Create the stream and write a commonmark document:
var msg = require('mkmsg')
, ast = require('mkast');
ast.src('This is a markdown paragraph.')
.pipe(msg())
.pipe(ast.stringify({indent: 2}))
.pipe(process.stdout);
mkmsg [options]
Message injection.
-m, --message=[MSG] Custom message, parsed as markdown
-p, --prepend Prepend message to the stream
-h, --help Display help and exit
--version Print the version and exit
Report bugs to https://github.com/mkdoc/mkmsg/issues
msg([opts][, cb])
Append or prepend a message string.
The message string is parsed as markdown and written to the end of the
document unless prepend
is given.
The document node itself is omitted; it's content nodes are written to the stream.
Returns an output stream.
opts
Object processing options.cb
Function callback function.input
Readable input stream.output
Writable output stream.message
String markdown message.prepend
Boolean prepend message to the stream.MIT
Created by mkdoc on April 2, 2016
FAQs
Message injection
The npm package mkmsg receives a total of 0 weekly downloads. As such, mkmsg popularity was classified as not popular.
We found that mkmsg 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.