Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

@ladjs/mongoose

2.0.1 • Public • Published

@ladjs/mongoose

build status code coverage code style styled with prettier made with lass license

Mongoose helper for Lad

Table of Contents

Install

npm:

npm install @ladjs/mongoose

yarn:

yarn add @ladjs/mongoose

Usage

This package serves as a drop-in replacement for a normal Mongoose require() call. It carries the same exact API and returns the same Mongoose instance that it normally would (except it adds some extra glue on top).

Basic usage:

const mongoose = require('@ladjs/mongoose');
mongoose.configure();
mongoose.connect().then().catch(console.error);

Advanced usage:

const mongoose = require('@ladjs/mongoose');
mongoose.configure({
  // ...
});
mongoose.connect().then().catch(console.error);

Contributors

Name Website
Nick Baugh http://niftylettuce.com

License

MIT © Nick Baugh

Install

npm i @ladjs/mongoose

DownloadsWeekly Downloads

17

Version

2.0.1

License

MIT

Unpacked Size

10.5 kB

Total Files

11

Last publish

Collaborators

  • avatar