<p>The answer to this is yes, it will. Mining can be done on most turing-complete languages like Javascript. But the true question is <a href="https://bitcoin.stackexchange.com/questions/10320/how-useful-is-a-javascript-miner/10327#10327">how useful is a JavaScript miner.</a> Not to mention Node.js is optimized towards asynchronicity, something which heavy math equations that mining requires aren't. Node.js <a href="https://stackoverflow.com/questions/16974557/why-is-node-js-not-suitable-for-heavy-cpu-apps">isn't suitable for CPU heavy tasks</a> but it flies when dealing with many requests at the same time. For this reason there aren't many miners built on Node.js/Javascript. A miner written in C++ is your best bet, such as CGMiner. </p>

CC BY-SA 3.0
2014-03-16T08:05:31.080Z
2014-03-16T08:05:31.080Z
2017-05-23T12:34:59.703Z
John T
<p><strong>UPDATED AND CLARIFIED AND SIMPLIFIED</strong></p>

<p>I'm looking through npmjs.org - My thought is can a node.js server mine (without a graphics card just using its own possessing power?) If so (there are a lot of modules for different things to do with statum) has anyone else done this?</p>

<p>I'm having difficulty understanding things with these npm modules on how to get them hooked up the same as my batch file (.bat) currently using cgminner ( I don't want to use cgminner just node.js)</p>

<p>my .bat for cgminer looks something like this:</p>

<pre><code>cgminer.exe --scrypt -u example.1 -p x -o stratum+tcp://united.wemineltc.com:3334 --gpu-platform 0 -w 256 -v 1 -I 17 -g 1 -l 1 --thread-concurrency 6496 
</code></pre>

<ol>
<li>does anyone use node.js for this</li>
<li>can someone show me which npm modules mine</li>
<li>can someone show me how to add my bat details to a npm node module js script</li>
</ol>

<p>Thanks Guys!</p>

CC BY-SA 3.0
2014-03-15T23:40:09.797Z
I recommend you clarify your question down to a single thing like "How to mine using node.js", it's hard to interpret this.
John T
CC BY-SA 3.0
2014-03-16T03:45:31.027Z
I have updated and clarified.. Please unhold, thank you
Ben Muircroft
CC BY-SA 3.0
2014-03-16T04:26:08.757Z
This question could be simplified down to "Is it efficient to use Node.js for mining? If so how?". All the extra info, the youtube video, mentioning your friend, is all very unnecessary and still very hard to interpret.
John T
CC BY-SA 3.0
2014-03-16T07:42:47.040Z
ok I will change now...
Ben Muircroft
CC BY-SA 3.0
2014-03-16T07:52:34.063Z
That's a good edit there, we have to do this because improperly worded questions will show up on all kinds of searches and confuse people who have the same question.
John T
CC BY-SA 3.0
2017-10-07T03:11:19.433Z
cazala coin-hive is the only one that can mine cryptonight coins (e.g. monero) via node.js
Sun
<litecoin><server>
npm / node mining for litecoins
Ben Muircroft
# npm / node mining for litecoins

(Asked by: username_0 on 2014-03-15)

**UPDATED AND CLARIFIED AND SIMPLIFIED**

I'm looking through npmjs.org - My thought is can a node.js server mine (without a graphics card just using its own possessing power?) If so (there are a lot of modules for different things to do with statum) has anyone else done this?

I'm having difficulty understanding things with these npm modules on how to get them hooked up the same as my batch file (.bat) currently using cgminner ( I don't want to use cgminner just node.js)

my .bat for cgminer looks something like this:

```
cgminer.exe --scrypt -u example.1 -p x -o stratum+tcp://united.wemineltc.com:3334 --gpu-platform 0 -w 256 -v 1 -I 17 -g 1 -l 1 --thread-concurrency 6496 

```

1. does anyone use node.js for this
2. can someone show me which npm modules mine
3. can someone show me how to add my bat details to a npm node module js script

Thanks Guys!

**Tags:** litecoin, server

> **Comments:**
> **username_1**: I recommend you clarify your question down to a single thing like "How to mine using node.js", it's hard to interpret this.  
> **username_0**: I have updated and clarified.. Please unhold, thank you  
> **username_1**: This question could be simplified down to "Is it efficient to use Node.js for mining? If so how?". All the extra info, the youtube video, mentioning your friend, is all very unnecessary and still very hard to interpret.  
> **username_0**: ok I will change now...  
> **username_1**: That's a good edit there, we have to do this because improperly worded questions will show up on all kinds of searches and confuse people who have the same question.  
> **username_2**: cazala coin-hive is the only one that can mine cryptonight coins (e.g. monero) via node.js  

---

## 1 answers

### Answer by username_1 on 2014-03-16. Score: 1

The answer to this is yes, it will. Mining can be done on most turing-complete languages like Javascript. But the true question is [how useful is a JavaScript miner.](https://bitcoin.stackexchange.com/questions/10320/how-useful-is-a-javascript-miner/10327#10327) Not to mention Node.js is optimized towards asynchronicity, something which heavy math equations that mining requires aren't. Node.js [isn't suitable for CPU heavy tasks](https://stackoverflow.com/questions/16974557/why-is-node-js-not-suitable-for-heavy-cpu-apps) but it flies when dealing with many requests at the same time. For this reason there aren't many miners built on Node.js/Javascript. A miner written in C++ is your best bet, such as CGMiner.


---

