@textbook/atlas-ip
v1.0.5
Published
Permit IPs to access MongoDB Atlas
Downloads
0
Readme
@textbook/atlas-ip
Permit IPs to access MongoDB Atlas.
Installation
$ npm install @textbook/atlas-ip
Usage
import Atlas from "@textbook/atlas-ip";
// set up required configuration
const atlas = await Atlas.create({ publicKey, privateKey })
await atlas.permit(groupId, ipAddress, comment);
// do work with MongoDB connection
await atlas.revoke(groupId, ipAddress);