New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@marp-team/marp-cli

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marp-team/marp-cli

A CLI interface for Marp and Marpit based converters

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.6K
decreased by-20.36%
Maintainers
1
Weekly downloads
 
Created
Source

@marp-team/marp-cli

CircleCI Codecov npm LICENSE

A CLI interface, for Marp (using @marp-team/marp-core) and any slide deck converter based on Marpit framework.

It can convert Marp / Marpit Markdown files into static HTML (and CSS).

:warning: marp-cli is under construction and not ready to use stable.

Try it now!

npx

npx is the best tool when you want to convert Markdown right now. Just run below if you are installed Node.js >= 8.2.0:

# Convert slide deck into HTML
npx @marp-team/marp-cli slide-deck.md
npx @marp-team/marp-cli slide-deck.md -o output.html

# Convert slide deck into PDF
npx @marp-team/marp-cli slide-deck.md --pdf
npx @marp-team/marp-cli slide-deck.md -o output.pdf

:information_source: You have to install Google Chrome (or Chromium) to convert slide deck into PDF.

Docker

Do you hate to install node/chrome locally? We have an official Docker image ready to use CLI.

# Convert slide deck into HTML
docker run --rm -v $PWD:/home/marp/app/ marpteam/marp-cli slide-deck.md

# Convert slide deck into PDF by using Chromium in Docker
docker run --rm -v $PWD:/home/marp/app/ marpteam/marp-cli slide-deck.md --pdf

Install

Global install

You can install CLI interface globally if you want to use marp command.

npm install -g @marp-team/marp-cli

Usage:

marp slide-deck.md -o output.html

Local install

npm install --save-dev @marp-team/marp-cli

Usage

Under construction.

ToDo

  • Add marp bin
  • Convert to plain HTML (includes style)
  • Import external theme file(s)
  • Select theme by option
  • Support configuration file (like .marprc)
  • Watch mode
  • Server mode
  • HTML templates
    • Template that has ready to actual presentation powered by Bespoke
  • Select engine to use any Marpit based module
  • Export PDF directly by using Puppeteer

Author

Managed by @marp-team.

  • Yuki Hattori (@yhatt)

License

MIT License

FAQs

Package last updated on 15 Sep 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc