DEV Community

Cover image for packaged something
Shamil TP
Shamil TP

Posted on

packaged something

hey today was ordinary I thought. Suddenly saw npm registry learn more on my github. fascinated sat on my chair and created a npm package. nothing complex just for my use. I hated configuring mongoose mongodb every time. so I build a package for it

npm install @shamil-tp/connectdb

installs my package

const connectDB = require("@shamil-tp/connectdb");
connectDB("connection string" || process.env.MONGO_URI)
Enter fullscreen mode Exit fullscreen mode

package listing

check my github if interest about how to create your first package
my package repo

Top comments (1)

Collapse
 
shamil_tp profile image
Shamil TP •

excited to share my first package.