Skip to content

Instantly share code, notes, and snippets.

View siara-cc's full-sized avatar

Arun (Arundale Ramanathan) siara-cc

View GitHub Profile
@siara-cc
siara-cc / Store-More-In-Firestore-with-Unishox.js
Last active July 31, 2021 09:04
Store more data than the 1GB free limit in Firestore database by compressing text content as a Blob using Unishox
// This assumes you have installed firebase and unishox using:
// npm i firebase
// npm i unishox2.siara.cc
var firebase = require("firebase");
var usx = require("unishox2.siara.cc");
// Get this from your firebase console
// Open/Create Project, click Project Settings, Click Add App,
// Click </>, provide a Web App Name, click Register App,
// Copy paste firebaseConfig from <script> to below: