Current collected state Current
Observed since 20 Oct, 17:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
100pourcent
Allow NodeJS to use all CPU's cores
Allow NodeJS to use all CPU's cores
That's really easy to use. That's my base code who can use only 1 core of my CPU :
const http = require('http');
http.createServer((req, res) => {
res.writeHead(200);
res.end('hello world\n');
}).listen(8000);
use NPM to install the 100pourcent module :
npm i 100pourcent
edit the code to require the module and pass our code in argument, in a function :
require("100pourcent")(()=>{
const http = require('http');
http.createServer((req, res) => {
res.writeHead(200);
res.end('hello world\n');
}).listen(8000);
});
Then our app can use 100% of the CPU cores
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"shasum": "f8f209bfbd52bbb8c20bb258d71ef3614385edec",
"tarball": "https://registry.npmjs.org/100pourcent/-/100pourcent-1.0.2.tgz",
"integrity": "sha512-6WvEWSTr7RFKcLWYRNldGkjTXpeyeEgpLXjBQsIwIrKK/ifbIvOqyB6irxIZgW4EQP0iC3AUkRlHqU1FR07W4Q==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQDgmedsWkDMeV3XdT+FTOYFnymhsVcrmoiYqAFaB9risAIgL2gyg5SxYHreQ2cmmQpNh952X3feQX6LDK+QISB6K1s="
}
]
}Observed since 20 Oct, 17:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:99ef51cd5ffb3373d234ba3126029710aec9269316f94e7cbeeecbf87ee0ffdd