@addaleax/test-mongosh-snippet-spawn-mongod

1.0.0 • Public • Published

spawn-mongod

Spin up a local mongod process.

// Copy data from a collection on the current server to a new server:
> const mongod = spawnMongod({ version: 'latest', port: 27097 })
> mongod.waitReady
listening!
> db.coll.find().forEach(doc => mongod.getDB('test').coll.insertOne(doc))

Readme

Keywords

none

Package Sidebar

Install

npm i @addaleax/test-mongosh-snippet-spawn-mongod

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

14.2 kB

Total Files

4

Last publish

Collaborators

  • addaleax