Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frenchbread/dq-models

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frenchbread/dq-models

Models lib for dq

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

dq-models

Mongoose extension with schema handler.

Insalling manually:

$ npm i git+https://frenchbread:pass@github.com/frenchbread/dq-models.git

Update geo db under its node_modules:

$ npm run-script updatedb

Models available:

  1. Account
  2. Article
  3. Project
  4. Watcher
  5. Task
  6. Hour
  7. Booking
var M = require('dq-models');

var Account = M.model('Account');

var Article = M.model('Article');

var Project = M.model('Project');

var Watcher = M.model('Watcher');

var Task = M.model('Task');

var Hour = M.model('Hour');

var Booking = M.model('Booking');

Init watcher

// watcher
app.use(function (req, res, next) {
    
    // If no authentication module provided, use:
    req.isAuthenticated = function () {
        return false;
    };

    Watcher.watch('project_name', req);
    next();
});

Coded by DM.

Keywords

FAQs

Package last updated on 09 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc