Socket
Socket
Sign inDemoInstall

express-mongo

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    express-mongo

RESTful API to mongodb documents for expressjs applications


Version published
Maintainers
1
Install size
2.01 MB
Created

Readme

Source

express-mongo

build status package version package downloads

RESTful API to mongodb documents for expressjs applications

Sample usage

var express = require('express');
var bodyParser = require('body-parser');
var mongoskin = require('mongoskin');
var api = require('express-mongo');

var db = mongoskin.db('mongodb://@localhost:27017/docs', {safe:true});

var app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));

// register RESTful API in your express application
app.use(api({db: db}));

app.listen(8080);

FAQs

Last updated on 15 Nov 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc