✅ Work on a fork of https://github.com/talk2MeGooseman/firestore-backup-restore to experiment adding npx
support to it
During off stream time I was looking for a good way to export Firestore data that I have for a couple of my extension s so that I can import into any other DB service of my choice.
Unfortunately Firebase does not offer a clean export tool, instead, you can only export to their propriety format. BUT I ended finding an NPM package that someone wrote to export data to JSON:
I was lazy and didn't want to spend time integrating this package into any project I have. So instead I got the crazy idea, "What if I made this npx compatible?" And here we are now.
So I forked the repo and start laying the groundwork for creating npx
compatible version of this package.
I got alot of my inspiration of how to do this from the cowsay package:
After completing the work and getting the MVP done for import and export, next came refactor phase. One thing that I realized needed a refactoring was the usage of optimist
It has been deprecated for a long time so I wanted to look for a better alternative. Luckily ABuffSeagull came flying in and recommended commander.js
The end result is the it worked out great and I feel like the command and options structure feels a lot better.
ABuffSeagull
Thanks for recommending commander.js and an alternative to optimist cli package
Kodder
2 month resub!