Release v1.0.4
Summary
This release publishes the CLI api-performance-checker to npm and adds config-file support, improved output formatting, and JSON result export.
Highlights
- Config file support (
--config <path>) to load test options from JSON - Support for custom headers and HTTP method via
--headersand--method - Output results to a JSON file with
-o, --output(human readable and machine-friendly) - README updated with usage and install instructions
Changelog (suggested)
- Fixed: Do not treat
results.jsonas a default config file (read config only when--configprovided) - Added:
--methodoption to control HTTP method - Added: Output JSON file format and saved results when
--outputprovided - Updated: README with badges, Quick Start, and Config examples
Installation
Global (CLI):
npm install -g api-performance-checkerLocal (project):
npm install api-performance-checker --saveExample usage
Run with a config file:
apitest --config ./config.jsonQuick one-off:
apitest -u https://jsonplaceholder.typicode.com/posts -n 20 -c 5 -o results.jsonFiles changed
Api_performance/ApiPerformance.js— CLI program: config handling, headers, method, JSON outputREADME.md— docs, badges and Quick Startpackage.json— metadata and keywords