# webhook-config-manager

> Loads content of found javascript and json files in given directory into a single structured object

Latest version **1.0.2** (published 2020-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install webhook-config-manager
pnpm add webhook-config-manager
yarn add webhook-config-manager
bun add webhook-config-manager
```

Provides the command `webhook-config-manager`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-06-28 |
| First published | 2020-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Martin Rafael Gonzalez |
| Maintainers | tin_r |
| Keywords | deep, deeply, recursively, list, scan, directory, folder, filter, pattern |

## Links

- npm: https://www.npmjs.com/package/webhook-config-manager
- Repository: https://github.com/devtin/webhook-config-manager
- Homepage: https://github.com/devtin/webhook-config-manager#readme
- Issues: https://github.com/devtin/webhook-config-manager/issues
- npm.io page: https://npm.io/package/webhook-config-manager

## Dependencies (1)

- [deep-list-dir](https://npm.io/package/deep-list-dir.md) ^1.3.0

## Recent versions

- 1.0.2 (latest) — 2020-06-28
- 1.0.1 — 2020-06-28
- 1.0.0 — 2020-06-28

## README

# webhook-config-manager
> Consolidates all <a href="https://github.com/adnanh/webhook" target="_blank">webhook</a> configs found in given
> directory in a single new one.

<a href="https://www.npmjs.com/package/webhook-config-manager" target="_blank"><img src="https://img.shields.io/npm/v/webhook-config-manager.svg" alt="Version"></a>
[![tests](https://github.com/devtin/webhook-config-manager/workflows/test/badge.svg)](https://github.com/devtin/webhook-config-manager/actions)

Looks for all `hook.json` found in `<cwd>/**/*`. Loads the content of all of them, concatenate them in on single array
and writes the output in a file `<cwd>/web-hooks.json`.

## Example

Take the following file structure:

```
my-projects/
├── project-a/
│   ├── hook.json
│   ├── index.js
│   └── package.json
├── project-b/
│   ├── hook.json
│   ├── index.js
│   └── package.json
└── project-c/
    ├── hook.json
    ├── index.js
    └── package.json
```

**project-a/hooks.json**
```json
[
  {
    "name": "project a"
  }
]
```

**`<cwd>/project-b/hooks.js`**
```json
[
  {
    "name": "project b"
  }
]
```

**`<cwd>/project-c/hooks.js`**
```json
[
  {
    "name": "project c"
  }
]
```

...and the following script:

```sh
$ npx webhook-config-manager
```

**`<cwd>/web-hooks.json`**

```json
[
  {
    "name": "project a"
  },
  {
    "name": "project b"
  },
  {
    "name": "project c"
  }
]
```

* * *

### License

[MIT](https://opensource.org/licenses/MIT)

&copy; 2020-present Martin Rafael Gonzalez
<tin@devtin.io>

---
_Source: https://npm.io/package/webhook-config-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
