New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@metamodules/mongo

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamodules/mongo

create-node-app metamodule for mongo. Develop and deploy mongo in seconds!

  • 1.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

MongoDB Meta-Module CircleCI npm version

For use with create-node-app and deploy-node-app

To add this metamodule to your project:

npm install @metamodules/mongo
// This "just works" both in development and production!
const mongo = require('@metamodules/mongo')()

var kittySchema = new mongo.Schema({
  name: String
})

var Kitten = mongo.model('Kitten', kittySchema)

var fluffy = new Kitten({ name: 'fluffy' })
fluffy.save(function(err, fluffy) {
  if (err) return console.error(err)

  Kitten.find(function(err, kittens) {
    if (err) return console.error(err)
    console.log(kittens)
  })
})

This is a simple wrapper around the mongoose module and includes the latest stable MongoDB image. This module exposes an instances of a mongoose Connection.

FAQs

Package last updated on 17 Jul 2019

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