Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
react-authedmine
Advanced tools
Mine cryptocurrency in your browser. This uses Coin-Hive to mine Monero (XMR).
npm install --save react-coinhive
import React from 'react';
import CoinHive from 'react-coinhive';
export default MyClass extends React.Component {
render() {
return (
<CoinHive
userName="Maya"
siteKey="caP8U8pZXH6n0f53eV3fdpwOvpmTAD3C"
autoThreads={false}
threads={2}
onInit={miner => setInterval(
() => console.log(CoinHive.getMinerData(miner))
, 1000
)}
/>
)
}
}
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
.
throttle
: The fraction of time that threads should be idle. Default is 0
.
onInit
: A function that takes the miner
instance as argument. It's called when the miner is created.
onStart
: A function that takes the miner
instance as argument. It's called every time the miner is started.
onStop
: A function that takes the miner
instance as argument. It's called every time the miner is stopped.
I have nothing to do with coin-hive.com
.
FAQs
Authedmine from CoinHive.com
The npm package react-authedmine receives a total of 1 weekly downloads. As such, react-authedmine popularity was classified as not popular.
We found that react-authedmine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.