Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@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: ![alt-text](img/your-image.jpg) ) |
./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
![alt-text](img/your-image.jpg)
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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.