1.0.1 • Published 9 years ago

to-firebase v1.0.1

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

to-firebase Build Status

Transform data into its Firebase representation, including nested objects

Uses object-to-firebase to converted nested objects and value-to-firebase to convert plain values.

Installing

$ npm install --save to-firebase

Usage

var toFirebase = require('to-firebase')
toFirebase({foo: null, bar: 'baz'})
// => {bar: 'baz'}

API

toFirebase(data) -> any

Returns the value that would appear in Firebase if you called ref.set(data)

data

Required
Type: any

The data to transform.