��# m o n g o o s e - d b - c o n n e c t i o n
m o n g o o s e - d b - c o n n e c t i o n p r o v i d e s a s i n g l e h e l p e r m e t h o d : ` ` ` C o n n e c t ( ) ` ` ` t o m a k e c o n n e c t i n g t o a m o n g o d b w i t h m o n g o o s e e a s i e r .
# # I n s t a l l a t i o n
` ` ` b a s h
n p m i n s t a l l m o n g o o s e - d b - c o n n e c t i o n
` ` `
# # U s a g e
` ` ` t y p e s c r i p t
i m p o r t { C o n n e c t } f r o m ' m o n g o o s e - d b - c o n n e c t i o n ' ;
C o n n e c t ( ` m o n g o d b : / / i p _ a d d r e s s _ h e r e : p o r t _ n u m b e r _ h e r e / c o l l e c t i o n _ h e r e ` ) ;
` ` `
mongoose-db-connection
1.0.13 • Public • PublishedPackage Sidebar
Install
npm i mongoose-db-connection
Repository
Weekly Downloads
2
Version
1.0.13
License
ISC
Unpacked Size
4.51 kB
Total Files
5