/carbon-node-api

A non-official node API for carbon.sh

Primary LanguageJavaScript

carbon-node-api

A simple node-puppeteer API to get a carbon.sh code image.

Made with love Made with node.js

Param Type Default Description
code (required) string Code used in the screenshot
theme string Hopscotch Visual code theme

GET /

Params are url-encoded:

https://carbon-node-api.herokuapp.com/?code=hello%20world&theme=Monakai

Response

API response

Deploy your own to Heroku in one-click:

Deploy


Inspiration from Sumanjay's Python version: https://github.com/cyberboysumanjay/Carbon-API