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
/** | |
* Migrate MongoDB database to Firebase. | |
* Syntax: node migrate.js [-c || --collection=]<MongoDB Collection> [ [-h || --host=]<MongoDB URI>] | |
* If no args are provided, the MONGODB_URI | |
* env variable declared in the .env file | |
* will be used instead. | |
*/ | |
const env = require('dotenv'); | |
const firebase = require('firebase'); |