@mongodb-helpers/create-url
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@mongodb-helpers/create-url


Build Status Coverage Status NPM version Code Size License

Simple helper function to generate mongodb url from config object 🎐.

Installation

# npm
$ npm install @mongodb-helpers/create-url
# yarn
$ yarn add @mongodb-helpers/create-url

Usage

This is a practical example of how to use.

import { createMongoDbUrl } from "@mongodb-helpers/create-url";

const murl = await createMongoDbUrl({
  username: "imed",
  password: "my-pwd",
  hostname: "my-host.domain.xyz",
  port: 12345,
  database: "my-db",
});

// you can use the url to connect to mongodb through any client.

License


MIT © Imed Jaberi

Readme

Keywords

none

Package Sidebar

Install

npm i @mongodb-helpers/create-url

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

6.12 kB

Total Files

6

Last publish

Collaborators

  • 3imed-jaberi