Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoshiyukikato/tarble
exec vegeta command from node.js
https://github.com/yoshiyukikato/tarble
Last synced: about 1 month ago
JSON representation
exec vegeta command from node.js
- Host: GitHub
- URL: https://github.com/yoshiyukikato/tarble
- Owner: YoshiyukiKato
- License: mit
- Created: 2018-12-10T06:46:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-11T02:12:09.000Z (almost 6 years ago)
- Last Synced: 2024-09-16T09:39:45.332Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 194 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tarble
Tarble is a younger brother of Vegeta. Exec [vegeta](https://github.com/tsenart/vegeta) commands from nodejs.## vegeta?
[vegeta](https://github.com/tsenart/vegeta) is an awesome load testing tool developed in Go. `tarble` is a wrapper to exec `vegeta` command from node.js. You have to install `vegeta` appropriately before use `tarble`.## usage
### prerequisite
See [here](https://github.com/tsenart/vegeta) to install `vegeta`.### quick start
```ts
import {Vegeta} from "tarble";const vegeta = new Vegeta();
const {stdout, stderr} = await vegeta
.attack({
attack: {
format: "json",
duration: "5s",
rate: "100/s"
},
targetList: [
{
url: "http://localhost:3000"
}
]
})
.encode()
.report({
report: {
type: "json"
}
})
.exec();
```### API doc
API doc is available on [here](https://yoshiyukikato.github.io/tarble/).