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

simple-connection

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-connection

Connection using mongo native which desire to be an simple alternative to another communicattions - ES6 read

  • 1.1.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-95%
Maintainers
1
Weekly downloads
 
Created
Source

Simple Connection - build status

I get some codes which I used in a project, and put into this repository. Is a small implementation for access mongodb with native drives provided by mongodb.

Is a ES 6 read.

Install

npm install simple-connection --save

Example


var DB = require('simple-connection');

var db = DB.config({
      "username": "",
      "password": "#",
      "server": "localhost",
      "port": 27017,
      "database_name": "exampleTest"
  });

  db.collection('yourCollection');

  db.find({your: 'search'}).then((success) => {
    console.log(success);
  }).catch((err) => {
    console.log(err);
  })

Need more implementation

  • add a update
  • add a remove
  • use a findOne

Keywords

FAQs

Package last updated on 05 Feb 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