Skip to content

Transform data into its Firebase representation, including nested objects

License

Notifications You must be signed in to change notification settings

bendrucker/to-firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to-firebase Build Status Greenkeeper badge

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.

About

Transform data into its Firebase representation, including nested objects

Resources

License

Stars

Watchers

Forks

Packages

No packages published