1.0.3 • Published 4 years ago

@moonlightos/moonlight-easy v1.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Moonlight Easy

To configure Moonlight easy, follow a few simple steps:

  1. Install moonlight-easy with npm
npm install --save --production @moonlightos/moonlight-easy

The production flag will make sure that development dependencies do not get installed, as they are not needed. This will keep the size of the moonlight package small.

  1. Configure moonlight easy with a postinstall script for your package.
{
  "name": "your package name",
  "version": "1.0.0",
  "description": "your description",
  "main": "index.js",
  "scripts": {
    "postinstall": "node -e 'try {require(\"@moonlightos/moonlight-easy\").showAd(\"(your package full name)\")} catch (e) {}'",
  }
}

Replace your package full name in the format github_account/repository. For example, for this package it would be 'MoonlightOS/moonlight-easy'

  1. Watch the money come in.

The dashboard

You can log in to the Moonlight dashboard with your GitHub account. If you have no repositories with Moonlight configured, it will show your repositories without any impression data. Once you configure Moonlight, impression & earnings data will start showing up in the Moonlight dashboard.