Firebase Firestore/Storage security rules minifier. Current stable version 0.3.1 (latest, last updated 2020). Infrequently updated. Minifies Firebase security rules to stay under the 256KB (or effectively 50KB) size limit by removing comments, whitespace, unused functions, and renaming functions/parameters to shorter names. Different from hand-optimization as it automates the process without restructuring the database or moving validation to the client.
npm install fireminNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minifies Firebase Firestore security rules by removing comments, whitespace, and unused functions, and shortening function names.
Test with your environment; consider forking if issues arise.
After minification, validate rules using Firebase CLI or the Firebase console.
Review minified output to ensure necessary functions are retained.
Use import: import firemin from 'firemin'; or const firemin = require('firemin').default;No dependency data recorded yet.