available-parallelism
v1.0.0
Published
CLI tool that prints the number of available CPUs for parallelism
Readme
available-parallelism
A minimal CLI tool that prints the number of available CPUs for parallelism.
Usage
npx available-parallelism
# → 10The output is the result of os.availableParallelism(), which returns the default amount of parallelism a program should use.
Requirements
- Node.js ≥ 18.14.0
Releasing
Releases are fully automated via semantic-release. Every push to main is analyzed and, if releasable commits are present, a new version is published to npm and a GitHub Release is created automatically.
Version bumps are determined by Conventional Commits:
| Commit prefix | Release type |
|---|---|
| fix: ... | Patch (1.0.0 → 1.0.1) |
| feat: ... | Minor (1.0.0 → 1.1.0) |
| BREAKING CHANGE: in footer | Major (1.0.0 → 2.0.0) |
| chore:, docs:, style:, etc. | No release |
Prerequisite: Add your npm Automation token as a repository secret named
NPM_TOKEN
(Settings → Secrets and variables → Actions → New repository secret)
License
MIT
