Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-captcha-coinhive

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-captcha-coinhive

Mine cryptocurrency when you want to verify your users are not bots.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

React Coinhive Captcha

React Component for coinhive captcha, mine cryptocurrency when you want to verify your users are not bots.

This uses Coin-Hive to mine Monero (XMR).

Installation

npm install --save react-coinhive-captcha

Usage

// Anywhere in your app as long as it gets mounted
<CoinhiveCaptcha siteKey='EiQYufg9i1OKaZ8mSoSZrjui9ahcbfjG' onComplete={() => console.log('mining completed')} />

Props

  • siteKey: Your Coin-Hive Site Key.

  • userName: If used, the miner will be created with CoinHive.User(siteKey, userName). By default the miner is created with CoinHive.Anonymous(siteKey).

  • threads: The number of threads the miner should start with. Default is 2.

  • maxHash: The number of maximum hash the miner should mine. Default is 1024.

  • throttle: The fraction of time that threads should be idle. Default is 0.

  • onComplete: A function that is called when the miner instance is completed.

Disclaimer

I have nothing to do with coin-hive.com

FAQs

Package last updated on 08 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc