Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
misojs-markdown-component
Advanced tools
A markdown component for use in misojs, also works with mithril through browserify
This component allows rendering of markdown in misojs.
In your main misojs application directory:
npm install misojs-markdown-component --save
Acceess the component in your mvc entities like so:
var Markdown = require('misojs-markdown-component')();
In your controller, you might set a value like so:
this.markdownValue = [
"## Markdown",
"The mark-up that likes to get down!",
"* Amazing!",
"* Awesome!"].join("\n");
And in your view:
m.component(Markdown, {
value: ctrl.markdownValue
}),
This will render the markdown.
By default the misojs markdown component will render both client and server side, however in miso you are able to serve static markdown on the client side, by simply including the file manually like so:
var Markdown = require('../node_modules/misojs-markdown-component/markdown.component.js')({});
This works because miso can compile separate server and client versions of the code automatically, and any directly referenced files will be included. See markdown.component.client.js for details on how the client side implementation works, and if it is suitable for your use.
FAQs
A markdown component for use in misojs, also works with mithril through browserify
The npm package misojs-markdown-component receives a total of 0 weekly downloads. As such, misojs-markdown-component popularity was classified as not popular.
We found that misojs-markdown-component 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.