🎉 CLI tool and lib to gather performance metrics
npm i odonata -g
# or use local packages
# npm i odonata --save
odonata http://baidu.com
# or use with `npx`:
# npm i odonata --save
# npx odonata http://baidu.com
const odonata = require('odonata');
odonata({url: 'http://baidu.com', ua: 'mobile'})
.then(data => console.log(data));
╰─ odonata
Usage: odonata [options] [url]
CLI tool and lib to gather performance metrics
Options:
-V, --version output the version number
-u, --ua <u> use mobile or desktop ua (default: "mobile")
-h, --help output usage information
Examples:
$ odonata http://baidu.com
$ odonata -ua desktop http://baidu.com
- Mail: [email protected]
- Twitter: @Tumars
MIT