@moonlightos/moonlight-easy
v1.0.3
Published
A way for open source developers to get paid
Downloads
4
Maintainers
Readme
Moonlight Easy
To configure Moonlight easy, follow a few simple steps:
- 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.
- 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'
- 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.