Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tumars/odonata

a cli tool to get web performance quickly
https://github.com/tumars/odonata

Last synced: 3 months ago
JSON representation

a cli tool to get web performance quickly

Awesome Lists containing this project

README

        

Odonata


Odonata


πŸŽ‰Β CLI tool and lib to gather performance metrics

----

## Install
```bash
npm i odonata -g

# or use local packages
# npm i odonata --save
```

## Output

![Odonata](http://www.ferecord.com/wp-content/uploads/2019/02/odonata-cli-screenshot.png)

## Usage

### CLI
```bash
odonata http://baidu.com

# or use with `npx`:
# npm i odonata --save
# npx odonata http://baidu.com
```

### Node
```js
const odonata = require('odonata');

odonata({url: 'http://baidu.com', ua: 'mobile'})
.then(data => console.log(data));
```

### Help
```
╰─ odonata
Usage: odonata [options] [url]

CLI tool and lib to gather performance metrics

Options:
-V, --version output the version number
-u, --ua use mobile or desktop ua (default: "mobile")
-h, --help output usage information

Examples:
$ odonata http://baidu.com
$ odonata -ua desktop http://baidu.com
```

## Contact
- Mail: [email protected]
- Twitter: [@Tumars](https://twitter.com/Tumars)

## License
MIT