Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theolampert/naos
📉 Uptime and error monitoring CLI
https://github.com/theolampert/naos
monitoring node puppeteer scraping typescript
Last synced: 2 months ago
JSON representation
📉 Uptime and error monitoring CLI
- Host: GitHub
- URL: https://github.com/theolampert/naos
- Owner: theolampert
- Created: 2018-02-27T16:51:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-22T04:59:03.000Z (about 5 years ago)
- Last Synced: 2024-10-29T19:29:56.541Z (2 months ago)
- Topics: monitoring, node, puppeteer, scraping, typescript
- Language: TypeScript
- Homepage:
- Size: 63.5 KB
- Stars: 29
- Watchers: 3
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-puppeteer - naos
README
### Naos ✨ ⛵️
Dead simple command line monitoring and debugging tool, based on [Puppeteer](https://github.com/GoogleChrome/puppeteer).### Whats it do?
Specify an array of urls to scrape and naos will evaluate them through Puppeteer, returning you a status code
and any browser console warnings or errors it finds.### Why?
Puppeteer is awesome and allows you to build very advanced integration test suites, however sometimes you
don't need or don't have time to write anything more advanced than making sure your routes return a `200` and
the console doesn't throw any errors. This can be very useful as a quick and basic regression checking tool.### Installation
```sh
npm install -g naos
```### Running
First create a config.json file like so:
```json
{
"protocol": "https",
"host": "www.nytimes.com",
"port": 443,"paths": [
"/",
"/section/world/"
]
}```
And begin scraping:
```sh
naos --config ./config.json
```With JSON output instead:
```sh
naos --config ./config.json --format json
```