[![npm (scoped with tag)](https://img.shields.io/npm/v/@nuxtjs/opencollective/latest.svg?style=flat-square)](https://npmjs.com/package/@nuxtjs/opencollective) [![npm](https://img.shields.io/npm/dt/@nuxtjs/opencollective.svg?style=flat-square)](https://npm
Last updated 2 years ago by pi0 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @nuxtjs/opencollective 
SYNC missed versions from official npm registry.

@nuxtjs/opencollective ???? Pretty opencollective stats on postinstall!

npm (scoped with tag) npm CircleCI Codecov Dependencies js-standard-style


???? Release Notes


Displaying opencollective statistics and a donation URL after users install a package is important for many creators. After problems with current packages that offer similar features, we decided to spin off our one own. Our key goals are:

  • No interference/problems when installing packages. Never break installation because of the package
  • Pretty output for all information
  • Decent configurability
  • Seamless drop-in for common solutions


  • Add @nuxtjs/opencollective dependency using yarn or npm to your project
  • Add the script to postinstall in your package.json
  // ...
  "scripts": {
    "postinstall": "opencollective || exit 0"
  "collective": {
    "url": "https://opencollective.com/nuxtjs"
  // ...
  • Configure it


Configuration is applied through your project's package.json.

A full configuration looks like:

  "collective": {
    "url": "https://opencollective.com/nuxtjs",
    "logoUrl": "https://opencollective.com/nuxtjs/logo.txt?reverse=true&variant=variant2",
    "donation": {
      "slug": "/order/591",
      "amount": "50",
      "text": "Please donate:"

Attribute Optional Default Comment
url - The URL to your opencollective page
logo - LEGACY: The URL to the logo that should be displayed. Please use logoUrl instead.
logoUrl - The URL to the ASCII-logo that should be displayed.
donation.slug '/donate' The slug that should be appended to url. Can be used to setup a specific order.
donation.amount - The default amount that should be selected on the opencollective page.
donation.text 'Donate:' The text that will be displayed before your donation url.

Disable message

We know the postinstall messages can be annoying when deploying in production or running a CI pipeline. That's why the message is disabled in those environments by default.

Enabled when one the following environment variables is set:

  • NODE_ENV=dev
  • NODE_ENV=development

Strictly Disabled when one the following environment variables is set:

  • CI
  • NODE_ENV (set and not dev or development)


  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Run it manually path/to/project/root/src/index.js path/to/package/you/want/to/try
  • Run tests with npm t or yarn test


This project is heavily inspired by opencollective-cli.


MIT License

Copyright (c) Alexander Lichter npm@lichter.io

Current Tags

  • 0.2.2                                ...           latest (2 years ago)

4 Versions

  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Today 12
This Week 2,479
This Month 6,536
Last Day 157
Last Week 2,398
Last Month 11,386
Dependencies (3)
Dev Dependencies (19)

Copyright 2014 - 2016 © taobao.org |