open-index/open-npm huggingface dataset:
npm package: @myparcel-dev/constants
Description: Collection of constant values for use with the MyParcel API
Author: Edie Lemoine
Latest version: 2.9.1

# @myparcel-dev/constants

[![npm](https://img.shields.io/npm/v/@myparcel-dev/constants?labelColor=27272A&logoColor=FFFFFF&style=for-the-badge&color=CC3534&logo=npm)](https://www.npmjs.com/package/@myparcel-dev/constants/)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/myparcelnl/constants?labelColor=27272A&style=for-the-badge)](https://github.com/myparcelnl/constants/releases)

This package contains various constant values used in the MyParcel ecosystem.

## Installation

```bash
# using npm
npm install @myparcel-dev/constants
# or yarn
yarn add @myparcel-dev/constants
# or pnpm
pnpm add @myparcel-dev/constants
```
npm package: @myparcel-dev/sdk
Description: JavaScript SDK to connect to the MyParcel API via Node.js or browser
Author: Edie Lemoine
Latest version: 5.0.1

# @myparcel-dev/sdk

[![npm](https://img.shields.io/npm/v/@myparcel-dev/sdk?labelColor=27272A&logoColor=FFFFFF&style=for-the-badge&color=CC3534&logo=npm)](https://www.npmjs.com/package/@myparcel-dev/sdk/)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/myparcelnl/js-sdk?labelColor=27272A&style=for-the-badge)](https://github.com/myparcelnl/js-sdk/releases)
[![codecov](https://codecov.io/gh/myparcelnl/js-sdk/graph/badge.svg?token=sdNcLRMAEn)](https://codecov.io/gh/myparcelnl/js-sdk)

Official JavaScript SDK to connect to the MyParcel API via Node.js or browser.

## Documentation

To the [documentation](https://developer.myparcel.nl/documentation/51.javascript-sdk.html).

## Contributing

See [CONTRIBUTING.md](./CONTRIBUTING.md).
npm package: @myparcel-dev/semantic-release-wordpress-readme-generator
Description: Generates a readme.txt for use with WordPress plugin releases in semantic-release
Author: MyParcel
Latest version: 1.3.1

# semantic-release-wordpress-readme-generator

Generates a readme.txt for WordPress plugin releases.

## Installation

### With Yarn

```shell
yarn add -D @myparcel-dev/semantic-release-wordpress-readme-generator
```

### With PNPM

```shell
pnpm add -D @myparcel-dev/semantic-release-wordpress-readme-generator
```

### With NPM

```shell
npm install --save-dev @myparcel-dev/semantic-release-wordpress-readme-generator
```

## Usage

Add the following to your `release.config.js`, below the `@semantic-release/changelog` plugin:

```js
const wordpressReadme = require('@myparcel-dev/semantic-release-wordpress-readme-generator');

module.exports = {
  plugins: [
    // ...
    '@myparcel-dev/semantic-release-wordpress-readme-generator',
  ],
};
```

### Options

By default, this is the configuration that will be used. This defines which commits will be included in the readme, and the order in which the entries will be written.

| Type     | Prefix                      |
|----------|-----------------------------|
| `feat`   | `New: `                     |
| `fix`    | `Fixed bug: `               |
| `perf`   | `Performance improvement: ` |
| `revert` | `Reverted: `                |

To customize this, pass an object to the plugin and override the `types` property:

```js
const wordpressReadme = require('@myparcel-dev/semantic-release-wordpress-readme-generator');

module.exports = {
  plugins: [
    // ...
    [
      '@myparcel-dev/semantic-release-wordpress-readme-generator',
      {
        types: [
          {
            type: 'feat',
            prefix: 'Feature: ',
          },
          {
            type: 'fix',
            prefix: 'Fix: ',
          },
        ]
      }
    ],
  ],
};
```
npm package: @myparcel-dev/ts-utils
Description: TypeScript utilities
Author: Edie Lemoine
Latest version: 1.15.1

# TypeScript Utilities

This is a collection of TypeScript utilities that we reuse across all TS projects.

[![npm](https://img.shields.io/npm/v/@myparcel-dev/ts-utils?labelColor=27272A&logoColor=FFFFFF&style=for-the-badge&color=CC3534&logo=npm)](https://www.npmjs.com/package/@myparcel-dev/ts-utils/)
[![Coverage Status](https://img.shields.io/codecov/c/github/myparcelnl/ts-utils?logo=codecov&style=for-the-badge)](https://codecov.io/gh/myparcelnl/ts-utils)

## Installation

**Using Yarn**

```bash
yarn add @myparcel-dev/ts-utils
```

**Using pnpm**

```bash
pnpm add @myparcel-dev/ts-utils
```

**Using npm**

```bash
npm install @myparcel-dev/ts-utils
```

> ⚠️ Note: You can install this package as a dev dependency if you only use the types.

## Contents

### [Type guards](src/type-guards)

#### [isEnumValue](src/type-guards/isEnumValue.ts)

Type guard for checking if a value is a key of the given enum.

```ts
import {isEnumValue} from '@myparcel-dev/ts-utils';

enum MyEnum {
  A = 'A',
  B = 'B',
}

const value = 'A';

if (isEnumValue(MyEnum, value)) {
  // value is of type MyEnum.A
}
```

#### [isInArray](src/type-guards/isInArray.ts)

Type guard which checks if given value is inside an array.

```ts
import {isInArray} from '@myparcel-dev/ts-utils';

const value = 'A'; // value is of type 'A'

isInArray(value, ['A', 'B']) // true
```

#### [isOfType](src/type-guards/isOfType.ts)

Type guard for checking if an object value is of a specific type by checking if a given K exists.

```ts
import {isOfType} from '@myparcel-dev/ts-utils';

interface BaseObject {
  a: string;
  b: number;
}

interface ObjectWithC extends BaseObject {
  c: string;
}

const value = {
  a: 'a',
  b: 1,
  c: 'c',
};

if (isOfType<ObjectWithC>(value, 'c')) {
  // value is of type ObjectWithC
}
```

### [Types](src/types)

### [Utils](src/utils)

#### [asyncEvery](src/utils/asyncEvery.ts)

Returns true if every element in the array satisfies the provided predicate.

```ts
import {asyncEvery} from '@myparcel-dev/ts-utils';

await asyncEvery([1, 2, 3, 4, 5], async (value) => value > 0); // true
await asyncEvery([1, 2, 3, 4, 5], async (value) => value > 1); // false
```

#### [asyncSome](src/utils/asyncSome.ts)

Returns true if some element in the array satisfies the provided predicate.

```ts
import {asyncSome} from '@myparcel-dev/ts-utils';

await asyncSome([1, 2, 3, 4, 5], async (value) => value > 4); // true
await asyncSome([1, 2, 3, 4, 5], async (value) => value > 5); // false
```

#### [toArray](src/utils/toArray.ts)

Converts a value to an array. If the value is already an array, it will be returned as is.

```ts
import {toArray} from '@myparcel-dev/ts-utils';

toArray('plain value'); // ['plain value']

toArray(['already an array']); // ['already an array']
```
npm package: @myparcel/constants
Description: Collection of constant values for use with the MyParcel API
Author: Edie Lemoine
Latest version: 2.6.0

# @myparcel/constants

[![npm](https://img.shields.io/npm/v/@myparcel/constants?labelColor=27272A&logoColor=FFFFFF&style=for-the-badge&color=CC3534&logo=npm)](https://www.npmjs.com/package/@myparcel/constants/)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/myparcelnl/constants?labelColor=27272A&style=for-the-badge)](https://github.com/myparcelnl/constants/releases)

This package contains various constant values used in the MyParcel ecosystem.

## Installation

```bash
# using npm
npm install @myparcel/constants
# or yarn
yarn add @myparcel/constants
# or pnpm
pnpm add @myparcel/constants
```
npm package: @myparcel/sdk
Description: JavaScript SDK to connect to the MyParcel API via Node.js or browser
Author: Edie Lemoine
Latest version: 4.4.2
Deprecated: DEPRECATED: Will be moved to @myparcel-dev/sdk

# @myparcel/sdk

[![npm](https://img.shields.io/npm/v/@myparcel/sdk?labelColor=27272A&logoColor=FFFFFF&style=for-the-badge&color=CC3534&logo=npm)](https://www.npmjs.com/package/@myparcel/sdk/)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/myparcelnl/js-sdk?labelColor=27272A&style=for-the-badge)](https://github.com/myparcelnl/js-sdk/releases)
[![codecov](https://codecov.io/gh/myparcelnl/js-sdk/graph/badge.svg?token=sdNcLRMAEn)](https://codecov.io/gh/myparcelnl/js-sdk)

Official JavaScript SDK to connect to the MyParcel API via Node.js or browser.

## Documentation

To the [documentation](https://developer.myparcel.nl/documentation/51.javascript-sdk.html).

## Contributing

See [CONTRIBUTING.md](./CONTRIBUTING.md).
npm package: @myparcel/semantic-release-wordpress-readme-generator
Description: Generates a readme.txt for use with WordPress plugin releases in semantic-release
Author: MyParcel
Latest version: 1.2.0
Deprecated: DEPRECATED: Will be moved to @myparcel-dev/semantic-release-wordpress-readme-generator

# semantic-release-wordpress-readme-generator

Generates a readme.txt for WordPress plugin releases.

## Installation

### With Yarn

```shell
yarn add -D @myparcel/semantic-release-wordpress-readme-generator
```

### With PNPM

```shell
pnpm add -D @myparcel/semantic-release-wordpress-readme-generator
```

### With NPM

```shell
npm install --save-dev @myparcel/semantic-release-wordpress-readme-generator
```

## Usage

Add the following to your `release.config.js`, below the `@semantic-release/changelog` plugin:

```js
const wordpressReadme = require('@myparcel/semantic-release-wordpress-readme-generator');

module.exports = {
  plugins: [
    // ...
    '@myparcel/semantic-release-wordpress-readme-generator',
  ],
};
```

### Options

By default, this is the configuration that will be used. This defines which commits will be included in the readme, and the order in which the entries will be written.

| Type     | Prefix                      |
|----------|-----------------------------|
| `feat`   | `New: `                     |
| `fix`    | `Fixed bug: `               |
| `perf`   | `Performance improvement: ` |
| `revert` | `Reverted: `                |

To customize this, pass an object to the plugin and override the `types` property:

```js
const wordpressReadme = require('@myparcel/semantic-release-wordpress-readme-generator');

module.exports = {
  plugins: [
    // ...
    [
      '@myparcel/semantic-release-wordpress-readme-generator',
      {
        types: [
          {
            type: 'feat',
            prefix: 'Feature: ',
          },
          {
            type: 'fix',
            prefix: 'Fix: ',
          },
        ]
      }
    ],
  ],
};
```
npm package: @myparcel/ts-utils
Description: TypeScript utilities
Author: Edie Lemoine
Latest version: 1.14.0
Deprecated: DEPRECATED: Will be moved to @myparcel-dev/ts-utils

# TypeScript Utilities

This is a collection of TypeScript utilities that we reuse across all TS projects.

[![npm](https://img.shields.io/npm/v/@myparcel/ts-utils?labelColor=27272A&logoColor=FFFFFF&style=for-the-badge&color=CC3534&logo=npm)](https://www.npmjs.com/package/@myparcel/ts-utils/)
[![Coverage Status](https://img.shields.io/codecov/c/github/myparcelnl/ts-utils?logo=codecov&style=for-the-badge)](https://codecov.io/gh/myparcelnl/ts-utils)

## Installation

**Using Yarn**

```bash
yarn add @myparcel/ts-utils
```

**Using pnpm**

```bash
pnpm add @myparcel/ts-utils
```

**Using npm**

```bash
npm install @myparcel/ts-utils
```

> ⚠️ Note: You can install this package as a dev dependency if you only use the types.

## Contents

### [Type guards](src/type-guards)

#### [isEnumValue](src/type-guards/isEnumValue.ts)

Type guard for checking if a value is a key of the given enum.

```ts
import {isEnumValue} from '@myparcel/ts-utils';

enum MyEnum {
  A = 'A',
  B = 'B',
}

const value = 'A';

if (isEnumValue(MyEnum, value)) {
  // value is of type MyEnum.A
}
```

#### [isInArray](src/type-guards/isInArray.ts)

Type guard which checks if given value is inside an array.

```ts
import {isInArray} from '@myparcel/ts-utils';

const value = 'A'; // value is of type 'A'

isInArray(value, ['A', 'B']) // true
```

#### [isOfType](src/type-guards/isOfType.ts)

Type guard for checking if an object value is of a specific type by checking if a given K exists.

```ts
import {isOfType} from '@myparcel/ts-utils';

interface BaseObject {
  a: string;
  b: number;
}

interface ObjectWithC extends BaseObject {
  c: string;
}

const value = {
  a: 'a',
  b: 1,
  c: 'c',
};

if (isOfType<ObjectWithC>(value, 'c')) {
  // value is of type ObjectWithC
}
```

### [Types](src/types)

### [Utils](src/utils)

#### [asyncEvery](src/utils/asyncEvery.ts)

Returns true if every element in the array satisfies the provided predicate.

```ts
import {asyncEvery} from '@myparcel/ts-utils';

await asyncEvery([1, 2, 3, 4, 5], async (value) => value > 0); // true
await asyncEvery([1, 2, 3, 4, 5], async (value) => value > 1); // false
```

#### [asyncSome](src/utils/asyncSome.ts)

Returns true if some element in the array satisfies the provided predicate.

```ts
import {asyncSome} from '@myparcel/ts-utils';

await asyncSome([1, 2, 3, 4, 5], async (value) => value > 4); // true
await asyncSome([1, 2, 3, 4, 5], async (value) => value > 5); // false
```

#### [toArray](src/utils/toArray.ts)

Converts a value to an array. If the value is already an array, it will be returned as is.

```ts
import {toArray} from '@myparcel/ts-utils';

toArray('plain value'); // ['plain value']

toArray(['already an array']); // ['already an array']
```