open-index/open-npm huggingface dataset:
npm package: @retrofix/is-network-error
Description: Check if a value is a Fetch network error
Author: Sindre Sorhus
Latest version: 1.1.0

# **Rebundled by RetroFixJS**

This is a rebundle of [is-network-error](https://www.npmjs.com/package/is-network-error) that provides **dual
CommonJS/ES module support**.

> **Note:** This is a transitional tool, not a long-term solution. ESM is the future, but some projects still need CJS
> compatibility.

## Original Package Information

| Info           | Link                                           |
|----------------|------------------------------------------------|
| **Package**    | https://www.npmjs.com/package/is-network-error |
| **Repository** | https://github.com/sindresorhus/is-network-error               |
| **Funding**    | https://github.com/sponsors/sindresorhus                               |

## **RetroFixJS Project**

> https://github.com/yelliver/RetroFixJS

**RetroFixJS** is an automated tool that patches, rebundles, and publishes libraries with dual module support for both
CommonJS and ESM environments.

## Usage

Use this rebundled version of `is-network-error` with npm aliases to maintain your original import paths - no code
changes needed!

Choose one of these two methods:

### Method 1: CLI Installation

```bash
# Install via CLI with an npm alias
npm install is-network-error@npm:@retrofix/is-network-error
```

### Method 2: Package.json Configuration

```json
{
  "dependencies": {
    "is-network-error": "npm:@retrofix/is-network-error@latest"
  }
}
```
npm package: @retrofix/ky
Description: Tiny and elegant HTTP client based on the Fetch API
Author: Sindre Sorhus
Latest version: 1.7.5000

# **Rebundled by RetroFixJS**

This is a rebundle of [ky](https://www.npmjs.com/package/ky) that provides **dual
CommonJS/ES module support**.

> **Note:** This is a transitional tool, not a long-term solution. ESM is the future, but some projects still need CJS
> compatibility.

## Original Package Information

| Info           | Link                                           |
|----------------|------------------------------------------------|
| **Package**    | https://www.npmjs.com/package/ky |
| **Repository** | https://github.com/sindresorhus/ky               |
| **Funding**    | https://github.com/sindresorhus/ky?sponsor=1                               |

## **RetroFixJS Project**

> https://github.com/yelliver/RetroFixJS

**RetroFixJS** is an automated tool that patches, rebundles, and publishes libraries with dual module support for both
CommonJS and ESM environments.

## Usage

Use this rebundled version of `ky` with npm aliases to maintain your original import paths - no code
changes needed!

Choose one of these two methods:

### Method 1: CLI Installation

```bash
# Install via CLI with an npm alias
npm install ky@npm:@retrofix/ky
```

### Method 2: Package.json Configuration

```json
{
  "dependencies": {
    "ky": "npm:@retrofix/ky@latest"
  }
}
```
npm package: @retrofix/p-retry
Description: Retry a promise-returning or async function
Author: Sindre Sorhus
Latest version: 6.2.1002

# **Rebundled by RetroFixJS**

This is a rebundle of [p-retry](https://www.npmjs.com/package/p-retry) that provides **dual
CommonJS/ES module support**.

> **Note:** This is a transitional tool, not a long-term solution. ESM is the future, but some projects still need CJS
> compatibility.

## Original Package Information

| Info           | Link                                           |
|----------------|------------------------------------------------|
| **Package**    | https://www.npmjs.com/package/p-retry |
| **Repository** | https://github.com/sindresorhus/p-retry               |
| **Funding**    | https://github.com/sponsors/sindresorhus                               |

## **RetroFixJS Project**

> https://github.com/yelliver/RetroFixJS

**RetroFixJS** is an automated tool that patches, rebundles, and publishes libraries with dual module support for both
CommonJS and ESM environments.

## Usage

Use this rebundled version of `p-retry` with npm aliases to maintain your original import paths - no code
changes needed!

Choose one of these two methods:

### Method 1: CLI Installation

```bash
# Install via CLI with an npm alias
npm install p-retry@npm:@retrofix/p-retry
```

### Method 2: Package.json Configuration

```json
{
  "dependencies": {
    "p-retry": "npm:@retrofix/p-retry@latest"
  }
}
```
npm package: @retrogen/core
Description: generates data from an organization you pass in
Author: Tierney Cyren
Latest version: 0.1.0

# @retrogen/core

The core functionality of retrogen, a tool for generating retrospectives for GitHub activity.

## Prerequisites

To run this project, it's assumed that you have a GitHub Personal Access Token configured in your environment under the `GITHUB_TOKEN` environment variable. You can either do this manually, automatically with your own tooling, or by adding an appropriately configured `.env` file to your project.

## Usage

Basic usage:

```js
// source: ./examples/default.js

const core = require('@retrogen/core')

async function generate () {
  const dates = {
    start: '2022-01-01',
    end: '2022-01-31'
  }

  const data = await core('nodejs', dates)

  console.log(JSON.stringify(data, null, 2))
}

generate()
```

Addtional examples can be found in [`./examples/`](./examples/).

## API 

Assuming you've required this module as `core`:

* `core(owner, dates, options)`
  * `owner` String (required): The GitHub name of the owner of the repository. This can be a user or an organization.
  * `dates` Object (required):
    * `start` String (required): The start date of the query we'll send to GitHub. Should be formatted as `YYYY-MM-DD`.
      * Example: `'2022-01-01'`
    * `end` String (required): The end date of the query we'll send to GitHub.Should be formatted as `YYYY-MM-DD`.
      * Example: `'2022-01-31'`
  * `options` Object (optional):
    * `sort` String (optional): The sort order of the query we'll send to GitHub. You can find the valid options on [GitHub's Docs](https://docs.github.com/en/enterprise-cloud@latest/search-github/getting-started-with-searching-on-github/sorting-search-results).
      * Examples: `stars`, `interactions`, `updated`
      * Default: `'updated'`
    * `per_page` Number (optional): The number of results to return per page.
      * Default: `100`

The goal with these API docs is to have a consistent style of documentation for each module in the monorepo. If there's inconsistencies, please feel free to open an issue to let the maintainers know
npm package: @retrohack3r/cloze
Description: Parse strings containing anki-style cloze notation
Author: William Blankenship
Latest version: 1.0.2

# Usage

Takes a string containing anki style cloze notation and returns an array.

```js
const cloze = require('@retrohack3r/cloze')

/* Returns:
[ { c: 1, answer: 'answer', hint: 'hint' } ]
*/
cloze('{{c1::answer::hint}}')

/* Returns:
[
  'foo ',
  { c: 2, answer: 'bar', hint: undefined },
  ' beep ',
  { c: 1, answer: 'fizz', hint: 'buzz' },
  'boop'
]
*/
cloze('foo {{c2::bar}} beep {{c1::fizz::buzz}}boop')
```

The returned array contains each "chunk" of the string, where a chunk is either a plaintext string or a cloze. You can reconstruct the original string from reading the array from left to right.
npm package: @retrohacker/objectify
Description: Recursively convert an object with arrays to an object with objects
Author: Will Blankenship
Latest version: 2.0.0

# objectify

A little library that recursively converts an object with arrays to an object
with objects.

## Install

```sh
yarn add @retrohacker/objectify
```

## Usage

```js
objectify({
  'foo': [
    { 'a': 1 },
    { 'b': 2 }]
  }
)
```

yields

```js
{
  'foo': {
    'foo_0': { 'a': 1 },
    'foo_1': { 'b': 2 }
  }
}
```

and

```js
{
  'foo': [1, 2, 3],
  'bar': ['a', 'b', 'c']
}
```

yields

```js
{
  'foo': [1, 2, 3],
  'bar': ['a', 'b', 'c']
}
```