Created
July 29, 2020 14:13
-
-
Save Streeterxs/dad931a563e902e07ae366e178203f6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const {spawn} = require('child_process'); | |
(() => { | |
const mongod = spawn('mongod', [], {cwd: 'c:/Program Files/MongoDB/Server/4.2/bin'}); | |
mongod.stdout.on('data', (data) => { | |
console.log(`${data}`); | |
}); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment