@withoneltd/code-score
v0.1.4
Published
High-performance Rust-powered code evaluation CLI.
Readme
@withoneltd/code-score
code-score is a high-performance code evaluation CLI powered by a Rust native binary and distributed through npm.
The npm package is intentionally lightweight. It provides the command name, help text, version output, and argument forwarding. The actual code analysis engine lives in a compiled Rust binary that is bundled into the package before release.
What It Does
code-score evaluates source code and prints a direct scoring result. It is designed for quick local checks where you want a fast, simple signal about a code file or an entire project folder.
Supported input modes:
- A single code file
- A whole folder
- Multiple files and folders in one command
Architecture
This package has two layers:
- npm launcher: a small Node.js wrapper that handles
--help,--version, and command forwarding - Rust engine: the high-performance native evaluator that performs the actual code scoring
The Rust engine is not implemented in JavaScript. This package currently targets Linux x64 only. Before publishing a production build, copy the compiled Linux x64 Rust binary into:
bin/native/linux-x64/code-scoreUsage
Run with npx:
npx -y @withoneltd/code-score <file-or-folder>Analyze one file:
npx -y @withoneltd/code-score src/index.jsAnalyze one folder:
npx -y @withoneltd/code-score srcAnalyze multiple inputs:
npx -y @withoneltd/code-score src testsHelp
npx -y @withoneltd/code-score --helpVersion
npx -y @withoneltd/code-score --versionor:
npx -y @withoneltd/code-score -vLocal Development
During development, you can test the npm launcher without publishing:
npx -y . --help
npx -y . --versionTo test the full command path, place a compiled Linux x64 Rust binary at:
bin/native/linux-x64/code-scoreThen run:
npx -y . srcIf the native binary is missing, the launcher prints the exact path it expected.
License
MIT
