open-index/open-npm huggingface dataset:
npm package: @mhoc/aws-cred-report
Description: helper library for generating aws credential reports
Latest version: 0.5.0

# AWSCredReport

[![npm](https://img.shields.io/badge/npm-0.5.0-yellow)](https://www.npmjs.com/package/@mhoc/aws-cred-report)
[![docs](https://img.shields.io/badge/documentation-0.5.0-blue)](https://aws-cred-report-ts.mhoc.co/)

This is a small TS library which wraps the aws-sdk to assist in generating AWS Credential Reports.

## What's Wrong With the AWS-SDK?

Nothing; but it could be made easier to work with.

First, the SDK includes two methods to create credential reports: `GenerateCredentialReport` and
`GetCredentialReport`. Its an asynchronous operation, and while the time between generation and
retrieval isn't usually too long, its still something callers need to think about.

Moreover, there's no method provided to determine the "status" of a "credential report generation"
operation; so, if you were to call Generate, followed by Get, and there's no credential report 
ready, you'd need to retry. This library handles the retrying for you.

Finally, you're given it back as a CSV-encoded buffer. This library fixes that for you; it'll 
parse the CSV, and return back a useful data structure.

## Usage

```ts
import { AWSCredReportClient } from "@mhoc/aws-cred-report";

const main = async () => {
  const client = new AWSCredReportClient();
  const report = await client.generateCredentialReport();
  for (const user of report.users) {
    console.log(`${user.username} mfa status: ${user.mfaActive}`);
    if (user.isRoot && !user.mfaActive) {
      console.log("root account has no mfa active!")
    }
  }
}
```
npm package: @mhoc/axios-digest-auth
Description: axios-like http digest auth
Latest version: 0.8.0

# axios-digest-auth

[![npm](https://img.shields.io/badge/npm-0.8.0-yellow)](https://www.npmjs.com/package/@mhoc/axios-digest-auth)
[![docs](https://img.shields.io/badge/documentation-0.8.0-blue)](https://axios-digest-auth.mhoc.co)

A library which implements HTTP digest authentication in a manner which should be familiar to any 
project which also uses Axios.

```
$ npm i @mhoc/axios-digest-auth
```

Check out [the documentation site](https://axios-digest-auth.mhoc.co) for more information 
on usage.
npm package: @mhoc/mongodb-atlas
Description: a very basic and incomplete wrapper around the mongodb atlas api
Author: Mike Hockerman
Latest version: 0.0.13

# `@mhoc/mongodb-atlas`

This is a type-safe API wrapper around the [MongoDB Atlas API](https://docs.atlas.mongodb.com/api) for NodeJS.

## Disclaimers & Limitations

- Mongo, MongoDB, and Atlas are registered trademarks of MongoDB, Inc. This project is not affiliated with them in any way.

- This library **is not** for querying data in a Mongo database; its for accessing deployed clusters and associated resources on [MongoDB's Atlas service](https://www.mongodb.com/cloud/atlas).

- This is very pre-release, not well tested, the API could change at any time, and its missing a lot of functionality.

- Use at your own risk.

## Installing

```
npm i @mhoc/mongodb-atlas
```

## Usage

```ts
import { AtlasClient } from "@mhoc/mongodb-atlas";

const atlasClient = new AtlasClient({
  publicKey: process.env.PUBLIC_KEY,
  privateKey: process.env.PRIVATE_KEY,
});
const projects = await atlasClient.projects.list();
```

## Supported APIs

- `.cloudBackupRestoreJobs.createDownload`: create a restore job targeting a `.tar.gz` file.
- `.cloudBackupRestoreJobs.get`: get one restore job.
- `.cloudBackupRestoreJobs.list`: list all restore jobs.
- `.cloudBackups.list`: list cloud backups for a cluster.
- `.clusters.list`: list clusters in a project.
- `.projects.list`: list projects the api key has access to.

## Testing

You must provide `ATLAS_PUBLIC_KEY` and `ATLAS_PRIVATE_KEY` environment variables for testing to
function properly. Only non-mutable query operations are ever tested, and even those may not
run properly given everyone would have their Atlas environemnt configured differently.