node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป


buglabs / pro.shared


Pro.Shared provides interfaces to underlying storage and shared libraries between Bug's products. Current pieces implemented by this library include the mongodb models.

Use (development)


  • Clone this repository to your rig.
  • Navigate to this directory. Run npm install then npm link
  • Navigate to each of the other projects that will use this shared lib
  • Run npm link bug-shared and then npm install


  • var bugShared = require('bug-shared')
  • Establish mongoose DB connection: app.db = mongoose.createConnection(config.mongodb.uri, config.mongodb.options);
  • bugShared.models(app, mongoose)
  • From there, app.db.models.* is available.

Use (production)