FirebaseExtended / bolt

Bolt Compiler (Firebase Security and Modeling)
Apache License 2.0
896 stars 108 forks source link

Feature request: Use bolt as a library #205

Open piuccio opened 6 years ago

piuccio commented 6 years ago

The only way to use this package is from the command line firebase-bolt file-on-disk.bolt

It would be great to be able to run it as a node module

const bolt = require('firebase-bolt');

const rules = bolt(`
# Bolt rules here
`);
rockwotj commented 6 years ago

Should able to make this easy by adding an index.js file in the root that exposes the generator functionality.