patreon-postinstall
v1.1.1
Published
Lightweight NPM postinstall message to invite people to donate to your Patreon.
Downloads
7
Readme
Patreon Postinstall
Lightweight NPM postinstall message to invite people to donate to your Patreon.
Installation
npm install --save patreon-postinstall
Usage
Add a new field in your package.json
:
{
...
"scripts": {
"postinstall": "patreon-postinstall"
},
"patreon": "https://patreon.com/<project-name>"
...
}
Disabling
In some places (e.g. CI), you may want to disable this output.
You can do this by setting the environment variable DISABLE_PATREON=true
.
You can also disable it by setting the npm's log level to silent (--silent), warn (--quiet), or error (--loglevel error).