
Research
/Security News
Compromised npm Packages in the AsyncAPI Namespace Deliver Miasma Botnet Loader
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.
docsify-mustache
Advanced tools
A Docsify plugin that allow preprocessing markdown documents with Mustache template engine. You can substitute variables in markdown documents using mustache syntax {{variable}} and {{variable.property}}.
A Docsify plugin that allow preprocessing markdown documents with Mustache template engine. You can substitute variables in markdown documents using mustache syntax {{variable}} and {{variable.property}}. Variables can be load from various sources, including front matter section of markdown documents, external JSON or XML files and Docsify configuration.
Add following script tag to your index.html after docsify.
<script src="//cdn.jsdelivr.net/npm/docsify-mustache"></script>
Optionally add docsify-front-matter plugin to access markdown front matter variables.
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/front-matter.min.js"></script>
You can load Mustache variables with data option. The value can be a string, object or array.
Example:
window.$docsify = {
mustache: {
data: [
'doc/vars.json',
'doc/pom.xml',
{
question: 'What is your favorite number?'
}
]
}
}
There is no way to access XML attributes, tag names used for hierarchy and for referring element's inner text.
The plugin loads package.json and make it available for Mustache as package variable. You can disable this feature setting noPackage option to true value:
window.$docsify = {
mustache: {
noPackage : true
}
}
Check the documentation site for more information.
This project is licensed under the MIT License. See the LICENSE for details.
FAQs
A Docsify plugin that allow preprocessing markdown documents with Mustache template engine. You can substitute variables in markdown documents using mustache syntax {{variable}} and {{variable.property}}.
The npm package docsify-mustache receives a total of 9 weekly downloads. As such, docsify-mustache popularity was classified as not popular.
We found that docsify-mustache 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.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.