
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
@kitapp-developers/mongo-import-export
Advanced tools
A modern CLI tool to import/export MongoDB collections to and from JSON or CSV — great for backups, migrations, and local development.
A modern and powerful CLI tool to import and export MongoDB collections to and from JSON and CSV files. Perfect for backups, migrations, and local development.
This tool was built to make MongoDB data management as simple and effective as possible:
ObjectId
, Date
)manifest.sha256
with checksumsupsert
: Replace if exists, insert if notskip
: Ignore documents that already existinsert
(default): Fail on duplicate _id
.env
FileSet default values and skip repetitive input:
DATA_FOLDER=./data
BATCH_SIZE=1000
LOG_LEVEL=debug
LOG_FILE=mongo_script_log.txt
Global (recommended for CLI usage):
npm install -g @kitapp-developers/mongo-import-export@latest
Local (as project dependency):
npm install @kitapp-developers/mongo-import-export@latest
Run the CLI:
mongo-import-export
Or use without global install:
npx mongo-import-export
The CLI will guide you through:
mongodb://user:password@host:port/
json
or csv
For Import:
? Select action: Import data into a database
? Enter MongoDB connection URI: mongodb://localhost:27017
? Select data format: json
? Enter database name to import to: myNewDatabase
? Clear collections before importing? Yes
Optional .env
file for defaults:
DATA_FOLDER=./data
BATCH_SIZE=1000
LOG_LEVEL=info
LOG_FILE=mongo_script_log.txt
Place .env
in the same directory where you run the CLI.
MIT License
FAQs
A modern CLI tool to import/export MongoDB collections to and from JSON or CSV — great for backups, migrations, and local development.
We found that @kitapp-developers/mongo-import-export demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.