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)
check my github if interest about how to create your first package
my package repo
Top comments (1)
excited to share my first package.