open-index/open-npm huggingface dataset:
npm package: @satisfactory-clips-archive/custom-assert
Description: Custom Assert functions used by @satisfactory-clips-archive/docs.json.ts
Latest version: 0.2.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

[![Coverage Status](https://coveralls.io/repos/github/Satisfactory-Clips-Archive/Custom-Assert/badge.svg?branch=main)](https://coveralls.io/github/Satisfactory-Clips-Archive/Custom-Assert?branch=main)
[![Workflow Status](https://github.com/Satisfactory-Clips-Archive/Custom-Assert/actions/workflows/node.js.yml/badge.svg?branch=main)](https://github.com/Satisfactory-Clips-Archive/Custom-Assert/actions/workflows/node.js.yml?query=branch%3Amain)

# Development

## Requirements

-   Docker
    -   recommend vscode devcontainer support
    -   phpstorm's devcontainer support works but doesn't seem as capable

## Instructions

1. Checkout locally
1. Load in devcontainer-supporting IDE
    - devcontainer setup should automatically run `make install`
    - `NODE_OPTIONS` env var may require opening a fresh terminal if you
      receieve an error along the lines of
      `TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"`

# Usage

1. run `npm install --save @satisfactory-clips-archive/custom-assert`
1. integrate with testing solution

## Example

Taken from project tests

```ts
import {describe, it} from 'node:test';
import assert from 'node:assert/strict';
import {array_has_size} from '@satisfactory-clips-archive/custom-assert';

void describe('array_has_size', () => {
	void it('does not throw', () => {
		assert.doesNotThrow(() => array_has_size([], 0));
		assert.doesNotThrow(() => array_has_size(['foo'], 1));
	});
	void it('does throw', () => {
		assert.throws(() => array_has_size([], 1));
		assert.throws(() => array_has_size([1], 0));
	});
});
```

# License

[see LICENSE.md](LICENSE.md)
npm package: @satisfactory-dev/ajv-utilities
Description: Ajv Utilities
Latest version: 0.2.2

[![Coverage Status](https://coveralls.io/repos/github/satisfactory-dev/ajv-utilities/badge.svg?branch=main)](https://coveralls.io/github/satisfactory-dev/ajv-utilities?branch=main)
[![Workflow Status](https://github.com/satisfactory-dev/ajv-utilities/actions/workflows/node.js.yml/badge.svg?branch=main)](https://github.com/satisfactory-dev/ajv-utilities/actions/workflows/node.js.yml?query=branch%3Amain)

# Installation

`npm install --save-dev @satisfactory-dev/ajv-utilities`

# Usage

## `compile`

```ts
import Ajv from 'ajv/dist/2020';
import {compile, FailedToCompileSchema} from '@satisfactory-dev/ajv-utilities';

const schema = {type: 'string'};

try {
	const check = compile(new Ajv(), schema);
} catch (err) {
	if (err instanceof FailedToCompileSchema) {
		console.error('failed to compile', err);
	} else {
		console.error('unknown error', err);
	}
}
```

## `esmify`

```ts
import Ajv from 'ajv/dist/2020';
import standalone from 'ajv/dist/standalone';
import {compile, esmify} from '@satisfactory-dev/ajv-utilities';

const ajv = new Ajv();

await writeFile(
	'./standalone-validator.mjs',
	esmify(standalone(ajv, compile(ajv, schema)))
);
```
npm package: @satisfactory-dev/custom-assert
Description: Custom Assert functions used by @satisfactory-dev/docs.json.ts
Latest version: 0.2.4

[![Coverage Status](https://coveralls.io/repos/github/satisfactory-dev/Custom-Assert/badge.svg?branch=main)](https://coveralls.io/github/satisfactory-dev/Custom-Assert?branch=main)
[![Workflow Status](https://github.com/satisfactory-dev/Custom-Assert/actions/workflows/node.js.yml/badge.svg?branch=main)](https://github.com/satisfactory-dev/Custom-Assert/actions/workflows/node.js.yml?query=branch%3Amain)

# Development

## Requirements

-   Docker
    -   recommend vscode devcontainer support
    -   phpstorm's devcontainer support works but doesn't seem as capable

## Instructions

1. Checkout locally
1. Load in devcontainer-supporting IDE
    - devcontainer setup should automatically run `make install`
    - `NODE_OPTIONS` env var may require opening a fresh terminal if you
      receieve an error along the lines of
      `TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"`

# Usage

1. run `npm install --save @satisfactory-dev/custom-assert`
1. integrate with testing solution

## Example

Taken from project tests

```ts
import {describe, it} from 'node:test';
import assert from 'node:assert/strict';
import {array_has_size} from '@satisfactory-dev/custom-assert';

void describe('array_has_size', () => {
	void it('does not throw', () => {
		assert.doesNotThrow(() => array_has_size([], 0));
		assert.doesNotThrow(() => array_has_size(['foo'], 1));
	});
	void it('does throw', () => {
		assert.throws(() => array_has_size([], 1));
		assert.throws(() => array_has_size([1], 0));
	});
});
```

# License

[see LICENSE.md](LICENSE.md)