Skip to content

Instantly share code, notes, and snippets.

View T-Rez-Owens's full-sized avatar

T-Rez T-Rez-Owens

View GitHub Profile
@bag-man
bag-man / database.js
Last active July 22, 2019 22:46
Connect and use MongoDB with ES6 in Node 4
'use strict'
const MongoClient = require('mongodb')
class Database {
constructor (uri) {
this.uri = uri
this.db = {}
return this