patreon-postinstall

Lightweight NPM postinstall message to invite people to donate to your Patreon.

Usage no npm install needed!

<script type="module">
  import patreonPostinstall from 'https://cdn.skypack.dev/patreon-postinstall';
</script>

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).