Socket
Socket
Sign inDemoInstall

markio

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "markio",
"version": "1.0.2",
"version": "1.0.3",
"description": "A custom Markdown rendering package for Express",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -31,3 +31,3 @@ # Markio

res.locals.data = "# Hello, world!";
res.render("index");
res.send(markio.renderMarkdown(res.locals.data));
});

@@ -37,4 +37,9 @@

res.locals.data = { filename: "example.md" };
res.render("index");
const markdown = "## " + fs.readFileSync(res.locals.data.filename, "utf8");
res.send(markio.renderMarkdown(markdown));
});
app.listen(3000, () => {
console.log("Server listening on port 3000");
});
```

@@ -41,0 +46,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc