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

1.0.1 • 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

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

0

Version

1.0.1

License

MIT

Unpacked Size

56.3 kB

Total Files

27

Last publish

Collaborators

  • tomsd