
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@infosupport/kc-serve
Advanced tools
serve @revealjs presentations straight from markdown and image files
Create and serve reveal.js presentations with ease.
Inspired by reveal-md.
npm i -g @infosupport/kc-serve
kc-serve --theme @infosupport/kc-cli-theme --highlight darkula
npm i --save @infosupport/kc-serve
package.json:
"scripts": {
"start": "kc-serve --theme @infosupport/kc-cli-theme --highlight darkula"
}
TypeScript:
import serve from '@infosupport/kc-serve';
try {
serve({
cwd: process.cwd(),
title: 'title',
theme: 'beige', // or a package
highlight: 'darkula.css'
}).listen(port)
.then(url => console.log(url))
.catch(err => console.error(err.message));
} catch (err) {
console.error(err.message)
}
folder | description |
---|---|
./slides | slides (markdown, png, gif, jpg & svg) |
./img | image files (from markdown:  ) |
./css | custom css |
The options are the same for the library as the command line except the first accepts a working directory and the latter default opens the presentation in the browser.
option | description |
---|---|
--theme | resolve to reveal.js theme |
--highlight | resolve to highlight.js style |
--port | serve from specified port |
--no-open | don't open presentation in browser |
Pick a highlight style from demo or use the css file name from source
Use a default reveal.js theme: black, white, league, beige, sky, night, serif, simple or solarized (see: reveal.js#theming) or use a package containing a custom theme (it should resolve to the css via 'main' or explicitly), or override (parts of) a theme with a custom css in the ./css folder

img[alt='alt-text']
or filename img[src='img/your-image.jpg']
Wrap your own CLI around the library to create a tool with a custom default theme and/or highlight style. Take a look at bin/cli.ts
for inspiration.
The main differences with reveal-md are:
Why not contribute to or fork reveal-md? When I tried to cut down the source I found it very entangled. It was a great start to find out what I needed but it was more easy to rebuild it from scratch.
FAQs
serve @revealjs presentations straight from markdown and image files
We found that @infosupport/kc-serve demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.