npm.io
2.0.1 • Published 11 years ago

firebase-validate-key

Licence
MIT
Version
2.0.1
Deps
1
Vulns
0
Weekly
0
Stars
1

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.

Keywords