Registry / web-framework / autocorrect-node-linux-x64-gnu

autocorrect-node-linux-x64-gnu

JSON →
library2.14.0jsnpmunverified

autocorrect-node-linux-x64-gnu is a specialized npm package providing the prebuilt native binary for the `autocorrect-node` library, specifically tailored for x86_64 Linux systems utilizing the GNU C Library. The core `autocorrect-node` library functions as a robust linter and formatter, designed to improve copywriting by intelligently correcting spaces, words, and punctuations across various languages, with a particular focus on CJK (Chinese, Japanese, Korean) and English text. Built on NAPI.RS, it leverages Rust-based native modules for high performance. This platform-specific package is typically installed automatically as a transitive dependency when `autocorrect-node` is added to a project on a compatible Linux environment, eliminating the need for local compilation. The current stable version for the `autocorrect-node` ecosystem, including its associated binaries, is 2.14.0, which was last published approximately a year ago. It offers both a command-line interface and a programmatic API for flexible integration into Node.js applications and CI/CD pipelines.

npm install autocorrect-node-linux-x64-gnu
INSTALL
IMPORT
SIG · AUTOCORRECT-NODE-L
A
autocorrect-node-linux-x64-gnu
web-frameworkjavascriptv2.14.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.

AutoCorrect
import AutoCorrect from 'autocorrect-node';
const AutoCorrect = require('autocorrect-node');
The primary API is a default export, usable with both ESM `import` and CommonJS `require`. This specific binary package does not export symbols directly; functionality is accessed via the main 'autocorrect-node' package.
format
import AutoCorrect from 'autocorrect-node'; await AutoCorrect.format('text');
import { format } from 'autocorrect-node'; AutoCorrect.format('text');
The 'format' method is exposed directly off the default imported 'AutoCorrect' object, not as a named export.
lint
import AutoCorrect from 'autocorrect-node'; await AutoCorrect.lint('text');
import { lint } from 'autocorrect-node'; AutoCorrect.lint('text');
The 'lint' method is exposed directly off the default imported 'AutoCorrect' object, not as a named export.

Demonstrates how to use `autocorrect-node` to lint and format a mixed CJK/English text string programmatically.

import AutoCorrect from 'autocorrect-node'; async function correctText() { const text = "你好hello世界,这是一段中文english混合文本。"; console.log("Original text:", text); // Lint the text to find issues according to configured rules const lintResult = await AutoCorrect.lint(text); console.log("Linting results:", JSON.stringify(lintResult, null, 2)); /* Example lint output for the provided text: [ { "filepath": "inline", "line": 1, "col": 3, "message": "Add a space between CJK and English", "rule": "space-around-english", "severity": 2, "insert": " " }, { "filepath": "inline", "line": 1, "col": 14, "message": "Add a space between CJK and English", "rule": "space-around-english", "severity": 2, "insert": " " } ] */ // Format the text to apply automatic corrections based on linting suggestions const formattedText = await AutoCorrect.format(text); console.log("Formatted text:", formattedText); // Expected output: "你好 hello 世界,这是一段中文 english 混合文本。" // Initialize a default configuration file (.autocorrectrc) if it doesn't exist // await AutoCorrect.init(); // console.log("Default config generated (if not exists): .autocorrectrc"); } correctText().catch(console.error);
autocorrect-node --version
Debug
Known issues
gotchaThis package (`autocorrect-node-linux-x64-gnu`) is a prebuilt native binary specifically for x86_64 Linux GNU systems. Directly installing it on an incompatible operating system or architecture (e.g., macOS, Windows, or ARM Linux) will lead to runtime errors or compilation failures.
fix
Instead of installing this binary directly, install the main `autocorrect-node` package (`npm install autocorrect-node`). It includes logic to automatically detect your system and fetch the correct prebuilt binary, or compile it from source if a prebuilt version is not available.
affects: >=1.0.0
breakingNative Node.js modules, including `autocorrect-node` (which consumes this binary), are highly sensitive to Node.js version changes due to ABI (Application Binary Interface) compatibility. Upgrading or downgrading your Node.js runtime significantly can cause 'Module was compiled against a different Node.js version' errors.
fix
Ensure your Node.js version meets the `autocorrect-node`'s `engines.node` requirement (current `>= 10`). If issues persist after a Node.js upgrade, try clearing your `node_modules` and `npm cache clean --force`, then reinstalling `autocorrect-node` to force recompilation or download of a compatible binary. Consider using a Node.js version manager like `nvm` to easily switch and manage Node.js versions.
affects: >=1.0.0
gotchaThis package may rely on specific system-level shared libraries (e.g., `libc.so.6` for GNU systems). In minimal Linux environments or Docker containers, these libraries might be missing or older versions, leading to dynamic linking errors.
fix
Ensure your Linux environment is up-to-date and includes common system libraries. For Docker, use a robust base image (e.g., `node:lts-slim` or `ubuntu`) and install any necessary runtime dependencies. Error messages will usually indicate the missing library (e.g., 'cannot open shared object file: No such file or directory').
affects: >=1.0.0
Errors
Common errors & fixes
Error: The `autocorrect-node` module was compiled against a different Node.js version. This version of Node.js cannot load this module. (Current Node.js version: X.Y.Z, expected Node.js version: A.B.C)
The native binary bundled with or compiled for `autocorrect-node` is incompatible with your current Node.js runtime's ABI.
fix
Update or downgrade your Node.js version to match the expected ABI, or clear `node_modules` and `npm cache clean --force` then reinstall `autocorrect-node` to trigger a fresh build or download of the correct binary. Using a Node.js version manager is recommended.
Error: Cannot find module 'autocorrect-node-linux-x64-gnu'
The platform-specific binary for `autocorrect-node` could not be found or loaded, often due to an incorrect platform, failed installation, or corrupted `node_modules`.
fix
First, ensure you are running `npm install autocorrect-node` (not this binary directly). If the error persists, verify your operating system and architecture are supported. Clear `node_modules`, `package-lock.json`, and npm cache, then reinstall. Check npm logs for specific build errors during installation.
Error: Dynamic Linking Error: libstdc++.so.6: cannot open shared object file: No such file or directory
A required system-level shared library (here, `libstdc++.so.6`) is missing from your Linux environment, preventing the native binary from loading.
fix
Install the missing system library using your distribution's package manager (e.g., `sudo apt-get install libstdc++6` on Debian/Ubuntu, `sudo yum install libstdc++` on RHEL/CentOS). Ensure your environment is up-to-date.
Upgrade
Version history
2.14.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
41 hits · last 30 days
node
36
OpenAI (training)
1
Resources
autocorrect-node-linux-x64-gnu — npm install autocorrect-node-linux-x64-gnu · libregistry