@tomsd/mongodbatlas
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@tomsd/mongodbatlas

It's a library for MongoDB Atlas.
See mongodbatlas.netlify.app also.

npm NPM npms.io (quality) Libraries.io dependency status for latest release Maintenance depends on node greater or equal 18

installation

npm install @tomsd/mongodbatlas

usage

Import and use MongoDbAtlas class.

import { MongoDbAtlas } from "@tomsd/mongodbatlas";

const mongoDbAtlas = new MongoDbAtlas(
  PUBLIC_KEY,
  PRIVATE_KEY
);

get projects

console.log(
  await mongoDbAtlas.projects.getAll()
);

get one project

const projectId = "...";
await mongoDbAtlas.project(projectId).get();

get users in project

await mongoDbAtlas.project(projectId).getUsers();

Readme

Keywords

Package Sidebar

Install

npm i @tomsd/mongodbatlas

Weekly Downloads

394

Version

2.0.0

License

MIT

Unpacked Size

27.2 kB

Total Files

6

Last publish

Collaborators

  • tomsd