Registry / autocorrect-node-linux-x64-musl

autocorrect-node-linux-x64-musl

JSON →
library2.14.0jsnpmunverified

This package (`autocorrect-node-linux-x64-musl`) provides the precompiled native binary for `autocorrect-node` tailored for Linux systems using the musl libc library on x64 architecture. `autocorrect-node` is a native Node.js addon built on NAPI.RS, offering fast and efficient text autocorrection, particularly beneficial for copywriting, correcting spaces, words, and punctuation in CJK (Chinese, Japanese, Korean) languages. This specific package is an internal, platform-dependent runtime dependency of the main `autocorrect-node` library and is not intended for direct use by developers. The current stable version for this binary, mirroring its parent package, is 2.14.0. Its release cadence is tightly coupled with the `autocorrect-node` project, typically updating with major `autocorrect-node` releases or when new native build targets are introduced.

npm install autocorrect-node-linux-x64-musl
INSTALL
IMPORT
SIG · AUTOCORRECT-NODE-L
A
autocorrect-node-linux-x64-musl
javascriptv2.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';
This binary package is not directly imported. Users import from the main `autocorrect-node` package, which then transparently loads the correct platform-specific binary, such as this one, at runtime. `autocorrect-node` ships with TypeScript types.
init
import { init } from 'autocorrect-node';
Similar to `AutoCorrect`, the `init` function (if exposed) from the main `autocorrect-node` package is what users interact with. This binary package remains an underlying dependency. Check `autocorrect-node`'s documentation for exact exports.
autocorrect CLI
yarn autocorrect --stdin 'hello世界'
The `autocorrect-node` package also provides a CLI. When `autocorrect-node` is installed, it may automatically use this platform-specific binary. Users typically invoke the CLI via `npx` or `yarn` without directly referencing this binary package.

Demonstrates basic usage of `autocorrect-node`'s `autocorrect` function, showcasing how the underlying native binary (this package) is implicitly utilized for text correction. Also includes a conceptual CLI usage.

import { autocorrect } from 'autocorrect-node'; async function runAutocorrect() { const text = "你好Hello世界"; // This implicitly uses the native binary for correction. const correctedText = await autocorrect(text); console.log(`Original: ${text}`); console.log(`Corrected: ${correctedText}`); // Example of using the CLI via programmatic execution (for illustration) // In a real app, you'd typically run this directly from the shell or rely on build tools. try { const { exec } = await import('node:child_process'); exec(`echo "${text}" | yarn autocorrect --stdin`, (error, stdout, stderr) => { if (error) { console.error(`CLI exec error: ${error.message}`); return; } if (stderr) { console.error(`CLI stderr: ${stderr}`); return; } console.log(`CLI Corrected: ${stdout.trim()}`); }); } catch (e) { console.warn("Cannot run CLI example without 'node:child_process' or yarn/npm in path.", e); } } runAutocorrect().catch(console.error);
Debug
Known issues
breakingMajor version upgrades of `autocorrect-node` may introduce breaking changes in the native module interface (NAPI), requiring a corresponding update to this binary package. Ensure `autocorrect-node` and its native binaries are kept in sync.
fix
Always update `autocorrect-node` and its platform-specific dependencies (like `autocorrect-node-linux-x64-musl`) to their latest compatible versions together.
affects: >=2.0.0
gotchaThis package is specifically for `x86_64-unknown-linux-musl`. Installing it on an incompatible system (e.g., glibc-based Linux, macOS, Windows, or a different architecture) will lead to runtime errors when `autocorrect-node` attempts to load the native module.
fix
Ensure that the correct platform-specific `autocorrect-node-*` package is installed for your environment. `autocorrect-node` typically handles this automatically via `optionalDependencies` or architecture detection; avoid direct installation of specific binary packages unless necessary for custom build environments.
affects: >=1.0.0
gotchaNative Node.js modules can sometimes fail to load due to `node-abi` compatibility issues, mismatched Node.js versions, or specific system library versions (like `musl` vs `glibc`).
fix
Check your Node.js version and ensure it is compatible with the `autocorrect-node` binaries. Verify that your system's `libc` (musl or glibc) matches the binary variant. Reinstalling `node_modules` might resolve transient issues.
affects: >=1.0.0
Errors
Common errors & fixes
Error: The `autocorrect` native module failed to load.
The main `autocorrect-node` package could not find or load a compatible native binary for your current environment. This often means the correct platform-specific binary (like `autocorrect-node-linux-x64-musl`) is missing or incompatible.
fix
Ensure `autocorrect-node` is installed, which should pull in the correct platform binary as an `optionalDependency`. If manually installing, make sure `autocorrect-node-linux-x64-musl` matches your OS and `libc` variant. Verify Node.js version compatibility.
Error: Cannot find module 'autocorrect-node-linux-x64-musl'
Node.js failed to locate the installed native binary package. This could be due to incorrect installation, corrupted `node_modules`, or an environment mismatch where `autocorrect-node` expects this specific package but it's not available.
fix
Run `npm install` or `yarn install` in your project root to ensure all dependencies are correctly installed. Check `package.json` for `autocorrect-node` and ensure that `npm` or `yarn` successfully installed the correct optional dependencies for your platform.
Upgrade
Version history
2.14.0latest on npm
Audit
Dependencies
autocorrect-nodeoptionalThis package provides the native binary for `autocorrect-node` when running on Linux x64 with musl libc. It is an optional/conditional dependency of the main `autocorrect-node` package, which dynamically loads the appropriate platform-specific binary.
Agent activity
7 hits · last 30 days
node
6
Resources
autocorrect-node-linux-x64-musl — npm install autocorrect-node-linux-x64-musl · libregistry