Socket
Socket
Sign inDemoInstall

firebase-bolt

Package Overview
Dependencies
8
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    firebase-bolt

Firebase Bolt Security and Modeling Language Compiler


Version published
Weekly downloads
2K
increased by15.34%
Maintainers
3
Install size
2.32 MB
Created
Weekly downloads
 

Readme

Source

Bolt Icon Bolt Compiler

Build Status NPM Version NPM Downloads

Bolt is an experimental security and rules compiler for Firebase Realtime Database (not for Firebase Cloud Storage). It is currently in beta. The language definition is converging, but not yet finalized. We welcome experimentation, but ask that you hand-verify the resulting JSON output before using with production applications.

Otherwise, we'd love to have feedback from early adopters. You can email questions to firebase-talk@googlegroups.com using "Bolt" in the subject line, or post bugs on our Issue Tracker.

Language Definition

Using the Bolt Compiler

You can easily install the bolt compiler using npm:

$ npm install --global firebase-bolt

Execute the Bolt compiler from the command line:

$ firebase-bolt rules.bolt

Will create a rules.json which you can then upload via the Firebase Web Console or the Firebase command line:

$ firebase deploy

The firebase command line tool version 2 will also compile your Bolt file directly if you have firebase-bolt installed and you use the .bolt file extension in the rules property of your firebase.json configuration file.

Developing with this Repo

You should have node.js and npm installed to use this repository.

Setup command line environment and build and test.

$ source tools/use
$ configure-project
$ gulp

Useful commands

Check JavaScript source files for required formatting conventions:

$ gulp lint

Build Bolt parser from PEG grammar:

$ gulp build

Run command line tests:

$ gulp test

More extensive tests which include running against a sandboxed Firebase app:

$ run-tests

Run browser-based tests:

$ browser-tests

Keywords

FAQs

Last updated on 26 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc