open-index/open-npm huggingface dataset:
npm package: @ovrhd/bpmn-transformer
Description: Transform javascript objects to BPMN
Author: Jesse van Muijden
Latest version: 1.3.0

# BPMN Transformer

Transforms javascript objects to BPMN strings.

## Install

### npm

```
npm install @ovrhd/bpmn-transformer
```

### yarn

```
yarn add @ovrhd/bpmn-transformer
```

## Example

```
import bpmnTransformer from '@ovrhd/bpmn-transformer';

const data = {
    id: 'minimal-workflow',
    name: 'Minimal Workflow',
    steps: [
        {
            variables: [
                { name: 'meerderjarig' },
                { name: 'gemeente' }
            ],
            tasks: [
                {
                    name: 'DMN workflow gemeente',
                    url: 'https://{{BASE_URL}}/v1/api/decisions/evaluate',
                    method: 'POST',
                    body: JSON.stringify({
                        id: "meerderjarig-gemeente.dmn",
                        dmn: "https://ipfs.io/ipfs/QmSwA9mRJeLVSo7F2Pjj5rKeAgirphN43TKn1gwwGmgiPo",
                        inputs: {
                            gemeente: "{{gemeente}}",
                            meerderjarig: "{{meerderjarig}}",
                        },
                    }),
                },
            ],
            conditions: [
                {
                    name: 'Rejection',
                    direction: 'left',
                    expression: 'rejection == true'
                }
            ]
        },
    ],
}

const xml = bpmnTransformer.toBPMN(data)
```
npm package: @ovrhd/camunda-bpmn-transformer
Description: Transform javascript objects to Camunda BPMN
Author: Jesse van Muijden
Latest version: 0.0.4

# BPMN Transformer

Transforms javascript objects to Camunda BPMN strings.

## Install

### npm

```
npm install @ovrhd/camunda-bpmn-transformer
```

### yarn

```
yarn add @ovrhd/camunda-bpmn-transformer
```

## Example

```
import bpmnTransformer from '@ovrhd/camunda-bpmn-transformer';

const data = {
    id: 'minimal-workflow',
    name: 'Minimal Workflow',
    steps: [
        {
            variables: [
                { name: 'meerderjarig' },
                { name: 'gemeente' }
            ],
            tasks: [
                {
                    name: 'DMN workflow gemeente',
                    url: 'https://{{BASE_URL}}/v1/api/decisions/evaluate',
                    method: 'POST',
                    body: JSON.stringify({
                        id: "meerderjarig-gemeente.dmn",
                        dmn: "https://ipfs.io/ipfs/QmSwA9mRJeLVSo7F2Pjj5rKeAgirphN43TKn1gwwGmgiPo",
                        inputs: {
                            gemeente: "{{gemeente}}",
                            meerderjarig: "{{meerderjarig}}",
                        },
                    }),
                },
            ],
            conditions: [
                {
                    name: 'Rejection',
                    direction: 'left',
                    expression: 'rejection == true'
                }
            ]
        },
    ],
}

const xml = bpmnTransformer.toBPMN(data)
```
npm package: @ovrsea/graphql-detect-unused-operations
Description: Library to check unused resolvers at Ovrsea
Author: Ovrsea
Latest version: 1.1.0

# Ovrsea GraphQL Unused Operations Detector 

A `GraphQL Unused Operations Detector` that reads through your codebase and compares the graphql operations (queries & mutations) and fragments used with your project's graphql `schema.json` and returns the unused operations and fragments to keep a clean codebase.

## Quickstart

#### Installing

`npm install @ovrsea/graphql-detect-unused-operations`

#### Basic Usage

```js
type FilePath = string;

type Options = {
  cwd?: string;
  ignore?: FilePath | string[];
  pattern?: string;
  verbose?: boolean;
  whitelist?: FilePath | string[];
};

const detectUnusedOperations = async (
  schema: Schema,
  options: Options = {}) =>: Promise<{
    unnecessarilyWhitelistedOperations: string[];
    unusedFragments: string[];
    unusedOperations: string[];
  }> {};
```

## Parameters

`schema`: JSON of the graphql schema

`cwd`: Path to the current working directory. Defaults to `""`

`ignore`: `FilePath` (`string`) to a pattern ignore or `string[]` of patterns to ignore. Defaults to file path `./.unused-operations-ignore `.
An example is available in `.unused-operations-ignore.example`

`pattern`: A glob pattern to the files to check. Defaults to `**/*.{ts,tsx,js} `,

`verbose`: Adds more log. Defaults to `false`,

`whitelist`: `FilePath` (`string`) to a whitelist of operations (queries and mutations only) or `string[]` of operations to whitelist. Defaults to `./.unused-operations-whitelist `. An example is available in `.unused-operations-whitelist.example`

## Return values

```js
const detectUnusedOperations = async (...) =>: Promise<{
    unnecessarilyWhitelistedOperations: string[];
    unusedFragments: string[];
    unusedOperations: string[];
  }> {};
```

## License

This project is [MIT licensed](./LICENSE).