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