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

tinypool

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinypool - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

7

dist/esm/index.js

@@ -105,4 +105,7 @@ "use strict";

if (platform === "linux") {
const output = exec('cat /proc/cpuinfo | grep "physical id" | sort | wc -l');
amount = parseInt(output.trim(), 10);
const output1 = exec('cat /proc/cpuinfo | grep "physical id" | sort |uniq | wc -l');
const output2 = exec('cat /proc/cpuinfo | grep "core id" | sort | uniq | wc -l');
const physicalCpuAmount = parseInt(output1.trim(), 10);
const physicalCoreAmount = parseInt(output2.trim(), 10);
amount = physicalCpuAmount * physicalCoreAmount;
} else if (platform === "darwin") {

@@ -109,0 +112,0 @@ const output = exec("sysctl -n hw.physicalcpu_max");

{
"name": "tinypool",
"version": "0.2.1",
"version": "0.2.2",
"description": "A minimal and tiny Node.js Worker Thread Pool implementation, a fork of piscina, but with fewer features",

@@ -5,0 +5,0 @@ "type": "module",

@@ -16,3 +16,5 @@ # Tinypool - the node.js worker pool ๐Ÿงต

*In case you need more tiny libraries like tinypool or tinyspy, please consider submitting an [RFC](https://github.com/tinylibs/rfcs)*
## Docs
Read **[full docs](https://github.com/aslemammad/tinypool#readme)** on GitHub.
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