2.0.1 • Published 9 years ago

firebase-validate-key v2.0.1

Weekly downloads
8
License
MIT
Repository
github
Last release
9 years ago

firebase-validate-key Build Status

Validate that a string is a valid Firebase key

Install

$ npm install --savefirebase-validate-key

Usage

var validate = require('firebase-validate-key')
validate('foo') // => true
validate('#foo') // => false

API

validate(key) -> boolean

key

Required
Type: string

False if the key is empty or is ., $, #, [, ], or /. Otherwise true.

2.0.1

9 years ago

2.0.0

9 years ago

1.0.0

9 years ago