Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
infosupport-kc-serve-fork
Advanced tools
Readme
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',
footer: './my-footer.html'
}).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 |
--footer | resolve to markup to be included in footer of every slide |
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
The npm package infosupport-kc-serve-fork receives a total of 1 weekly downloads. As such, infosupport-kc-serve-fork popularity was classified as not popular.
We found that infosupport-kc-serve-fork 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.