0.0.5 • Published 8 years ago

gitbook-plugin-toconsole v0.0.5

Weekly downloads
2
License
Apache 2
Repository
github
Last release
8 years ago

GitBook plugin : Send javascript output to console

Gitbook produces code examples. This plugin adds a button next to them. Then, one can send the result to the browser inspector console.

You can use install it via NPM:

$ npm install gitbook-plugin-toconsole

And use it for your book with:

$ gitbook build ./ --plugins=toconsole

You can set the button message with the plugins configuration (command line option: --pluginsConfig) :

{
    "toconsole": {
        "buttontext": "Evaluate in console"
    }
}