googlearchive / firebase-util

An experimental toolset for Firebase
http://firebase.github.io/firebase-util
MIT License
276 stars 67 forks source link

Require is returning an empty object in NodeJS #57

Open maxrevilo opened 9 years ago

maxrevilo commented 9 years ago

Hi, I'm trying to load firebase-util in a NodeJS program but when I require the module the result is an empty object.

This is what I do:

var FirebaseUtil = require('firebase-util');

FirebaseUtil.NormalizedCollection('...') << NormalizedCollection is undefined
FirebaseUtil.escapeEmail('...') << escapeEmail is undefined

It fails even if I do this:

var FirebaseUtil = require('./node_modules/firebase-util/dist/firebase-util.min.js');

FirebaseUtil.NormalizedCollection('...') << NormalizedCollection is undefined

Am I doing something wrong or it is a bug?

katowulf commented 9 years ago

Looks like a bug. : (