Registry / database / mondex

mondex

JSON →
library1.0.1jsnpmunverified

Mondex is a CLI tool for creating and managing MongoDB indexes from a configuration file. Version 1.0.1 is the current stable release; it is a small utility with no active release cadence. It provides three commands (pull, plan, apply) to extract existing indexes, preview changes, and apply them. Unlike similar tools, it uses a simple JSON configuration file and integrates directly with the MongoDB shell's createIndex syntax.

npm install mondex
INSTALL
IMPORT
SIG · MONDEX
M
mondex
databasejavascriptv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

mondex CLI
npm install -g mondex
yarn add mondex
Install globally or use npx npx mondex.

Demonstrates the three main commands: pull existing indexes, plan changes, then apply.

mondex pull --uri mongodb://localhost:27017 --db mydb --file ./indexes.json # Edit indexes.json as needed mondex plan --uri mongodb://localhost:27017 --db mydb --file ./indexes.json mondex apply --uri mongodb://localhost:27017 --db mydb --file ./indexes.json
Debug
Known issues
gotchaThe --uri option expects a full MongoDB connection string. Using --host instead will fail silently.
fix
Use --uri mongodb://localhost:27017
affects: <=1.0.1
gotchaThe configuration file must be valid JSON. Trailing commas are not allowed.
fix
Validate JSON using a linter before running apply.
affects: <=1.0.1
Errors
Common errors & fixes
Error: Cannot find module 'mondex'
Mondex is not installed or not in PATH.
fix
Run `npm install -g mondex` or use `npx mondex`.
Error: Indexes file not found: ./indexes.json
The specified file path does not exist.
fix
Ensure the file exists or use --file to point to a valid path.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
packagemondex
mondex — npm install mondex · libregistry