to-firebase

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i to-firebase

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • bendrucker