Registry / devops / gear
library0.16.0jsnpmunverified

Gear.js was an extensible build system designed for both Node.js and browser environments, focusing on asynchronous task chaining. It provided basic building blocks that could be combined for complex builds, allowing tasks to be easily defined and extended via NPM or local files. Its key features included advanced flow control for task execution and the ability to run tasks in parallel. The project's last stable version, 0.9.7, was released approximately nine years ago, and the package has since been abandoned. There is no active development, maintenance, or modern JavaScript/TypeScript support. Developers should consider modern alternatives due to security concerns and incompatibility with current ecosystems.

npm install gear
INSTALL
IMPORT
SIG · GEAR
G
gear
devopsjavascriptv0.16.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.

Queue
const Queue = require('gear').Queue;
import { Queue } from 'gear';
Gear.js primarily uses CommonJS `require` syntax. The Queue class is a named export from the main 'gear' module. Attempting to use ESM `import` will result in errors.

Demonstrates basic installation and how to instantiate a Queue and chain fundamental file operations like reading, inspecting, and writing.

const { Queue } = require('gear'); // Install recommended tasks library // npm install gear gear-lib // Example: Chaining tasks to read, inspect, and write a file new Queue() .read('foo.js') .log('read foo.js') .inspect() // Prints file contents and metadata to console .write('foobarbaz.js') .run(function (err) { if (err) { console.error('Build failed:', err); return; } console.log('Build complete: foobarbaz.js created.'); }); // Note: This package is abandoned and not compatible with modern Node.js versions or ESM.
gear --version
Debug
Known issues
breakingThe Gear.js project has been abandoned for approximately nine years. It is not compatible with modern Node.js versions (e.g., Node.js 14+) due to outdated dependencies and lack of maintenance. Expect frequent compatibility issues and runtime errors.
fix
Migrate to a currently maintained build system like Gulp, Webpack, Rollup, or esbuild. Do not use Gear.js for new projects.
affects: >=0.9.7
gotchaThe package is CommonJS-only and does not support ES Modules (`import`/`export`). Attempting to import Gear.js components using ESM syntax will fail.
fix
Always use `const { Symbol } = require('gear');` for importing components.
affects: >=0.1.0
breakingSecurity vulnerability: Being an unmaintained project, Gear.js and its dependencies (including `gear-lib`) are highly likely to contain known security vulnerabilities (CVEs) that will not be patched. Using it in production could pose significant security risks.
fix
Discontinue use immediately and replace with a modern, actively maintained alternative. Perform a security audit if already in use.
affects: >=0.1.0
Errors
Common errors & fixes
TypeError: Queue is not a constructor
Attempting to instantiate Queue without properly requiring it or using incorrect ESM syntax in a CJS context.
fix
Ensure you are using `const { Queue } = require('gear');` and not `import { Queue } from 'gear';`.
Error: Cannot find module 'gear-lib/tasks/jsminify'
Tasks like `jsminify` are provided by the `gear-lib` package, which must be installed separately.
fix
Run `npm install gear-lib` in your project directory to install the task library.
TypeError: queue.run is not a function
The `run()` method is called on an instance of `Queue`, not directly on the `Queue` class itself, or the `Queue` object was not correctly instantiated.
fix
Ensure you are calling `new Queue().someTask().run();`.
Upgrade
Version history
0.16.0latest on npm
Audit
Dependencies
gear-librequiredContains common build tasks like linting, minifying, and deploying assets, and is explicitly recommended for full functionality.
Agent activity
2 hits · last 30 days
node
2
Resources
gear — npm install gear · libregistry