Registry / testing / lintspaces-cli

lintspaces-cli

JSON →
library1.0.0jsnpmunverified

CLI tool wrapping the lintspaces library for checking whitespace, indentation, newlines, trailing spaces, and editorconfig compliance in text files. The current stable version is 1.0.0, released with lintspaces v0.12.0, reverting the default .editorconfig loading introduced in v0.8.0. It supports glob patterns, regex ignores, JSON output, and dotfile matching; designed for simple shell usage without a build system. Release cadence is infrequent, with major updates tied to lintspaces releases.

npm install lintspaces-cli
INSTALL
IMPORT
SIG · LINTSPACES-CLI
L
lintspaces-cli
testingjavascriptv1.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

lintspaces command
Run via npx lintspaces or globally installed lintspaces
This is a CLI tool, not a library; no programmatic API is exported.

Show how to use lintspaces-cli via npx to check JavaScript and CSS files for trailing spaces, newline at EOF, and 2-space indentation.

npx lintspaces -n -t -d spaces -s 2 src/**/*.js src/**/*.css
lintspaces --version
Debug
Known issues
breakingv1.0.0 no longer automatically loads .editorconfig from the current working directory; use -e explicitly if needed.
fix
Add -e .editorconfig or specify the full path to your editorconfig file.
affects: >=1.0.0
deprecatedv0.8.0 introduced automatic .editorconfig loading, but this was reverted in v1.0.0. Relying on the old behavior will break on upgrade.
fix
Update scripts to include -e .editorconfig if needed.
affects: 0.8.0 - 0.8.0
gotchaGlob patterns must be quoted on Unix shells to prevent expansion before being passed to the CLI. E.g., use "src/**/*.js" without quotes may not work.
fix
Always quote glob patterns: lintspaces -n -t "src/**/*.js"
affects: *
gotchaOptions are normalized to lowercase, so --JSON is invalid. Use --json exactly.
fix
Use --json in lowercase.
affects: >=0.7.0
Errors
Common errors & fixes
Error: Cannot find module 'lintspaces'
Global install of lintspaces-cli doesn't include lintspaces as a dependency?
fix
Ensure lintspaces is installed (npm install -g lintspaces-cli should pull it). If not, install lintspaces globally: npm install -g lintspaces
Invalid regular expression: /[object Object]/: invalid group
Passed --regexignores without properly quoting the regex pattern.
fix
Use properly formatted regex: --regexignores '/\d+/' 
is not a file
The glob pattern didn't match any files or matched a directory.
fix
Update to v0.7.1+ or ensure glob only matches files, not directories.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
lintspaces-cli — npm install lintspaces-cli · libregistry