All Projects → Rowno → medic

Rowno / medic

Licence: MIT license
Perform bulk URL status checks and track changes.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to medic

WeConnect-cli
Commandline Interface to interact with the Volkswagen WeConnect Services
Stars: ✭ 27 (+12.5%)
Mutual labels:  command-line-tool
fontman
Manage and update your installed fonts.
Stars: ✭ 20 (-16.67%)
Mutual labels:  command-line-tool
ModuleInterface
Swift tool to generate Module Interfaces for Swift projects.
Stars: ✭ 70 (+191.67%)
Mutual labels:  command-line-tool
okcli
An Oracle-DB command line client
Stars: ✭ 47 (+95.83%)
Mutual labels:  command-line-tool
swift-commandlinekit
Framework supporting the development of command-line tools in Swift on macOS and Linux. The framework supports managing command-line arguments, provides lightweight functions to deal with escape sequences, and defines an API for reading strings from the terminal.
Stars: ✭ 38 (+58.33%)
Mutual labels:  command-line-tool
Infinite-File-Curtailer
Curtail is a utility program that reads stdin and writes to a file bound by size.
Stars: ✭ 23 (-4.17%)
Mutual labels:  command-line-tool
content-downloader
Python package to download files on any topic in bulk.
Stars: ✭ 102 (+325%)
Mutual labels:  command-line-tool
SimpleSqlExec
Lightweight command-line utility to execute queries on SQL Server in place of SQLCMD
Stars: ✭ 20 (-16.67%)
Mutual labels:  command-line-tool
cert human
SSL Certificates for Humans
Stars: ✭ 34 (+41.67%)
Mutual labels:  command-line-tool
vimwasm-try-plugin
Try Vim plugin on your browser without installing it using vim.wasm!
Stars: ✭ 21 (-12.5%)
Mutual labels:  command-line-tool
iconset
A nifty command-line tool to customize macOS icons
Stars: ✭ 29 (+20.83%)
Mutual labels:  command-line-tool
rclc
Mathematical expression calculator with big integers, floats, common fractions, and complex numbers support
Stars: ✭ 24 (+0%)
Mutual labels:  command-line-tool
ut-cli
A command line tool to handle a unix timestamp.
Stars: ✭ 13 (-45.83%)
Mutual labels:  command-line-tool
smartcd
Expedite your navigation of Linux filesystem.
Stars: ✭ 35 (+45.83%)
Mutual labels:  command-line-tool
mixpanel-engage-query
Command line tool to query the MixPanel Engage API for People Data.
Stars: ✭ 48 (+100%)
Mutual labels:  command-line-tool
raisin
A simple lightweight set of implementations and bindings for compression algorithms written in Go.
Stars: ✭ 17 (-29.17%)
Mutual labels:  command-line-tool
gee
🏵 Gee is tool of stdin to each files and stdout. It is similar to the tee command, but there are more functions for convenience. In addition, it was written as go
Stars: ✭ 65 (+170.83%)
Mutual labels:  command-line-tool
rfc-bibtex
A command line tool that creates bibtex entries for IETF RFCs and Internet Drafts.
Stars: ✭ 43 (+79.17%)
Mutual labels:  command-line-tool
ttdl
TTDL - Terminal Todo List Manager
Stars: ✭ 91 (+279.17%)
Mutual labels:  command-line-tool
metronome
A set of tools for modifying and randomizing Pokémon games
Stars: ✭ 23 (-4.17%)
Mutual labels:  command-line-tool

Medic

Build Status Dependency Status

Perform bulk URL status checks and track changes.

Medic screenshot

Getting Started

Install the Medic command line tool:

npm install -g medic

Create a urls.txt file:

---
cookies:
    - Location=nz
---

# Home pages

https://rolandwarmerdam.co.nz/
https://www.google.com/
https://twitter.com/
http://example.com/

Run medic:

medic urls.txt

Also supports piping:

cat urls.txt | medic

Usage

CLI

Usage: medic <path> [<options>]

Path:
    Path to a file containing a list of URLs. Each URL must be on a separate
    line and lines not starting with http:// or https:// are ignored.
    This parameter is ignored when URLs are being piped.
    File can also can also contain YAML front matter with the cookies option.

Options:
    -c  --concurrency Number of concurrent requests per origin. Defaults to 5.
    -h, --help        Show this help text.
    -o, --output      File path to output the results of this run to.
    -p, --compare     Path to a previous results file to compare against.
    -v, --version     Print medic's version.

API

.check(object options, [function callback]) -> Promise

Checks the status of all the passed URLs.

Options
cookies

Type: array

urls

Type: array

onProgress

Type: function<object result>

Gets called on each checked URL and is passed the result.

Example result:

[
  {
    "url": "https://www.google.com/mail/",
    "statusCode": 200,
    "redirectUrl": "https://mail.google.com/mail/"
  }, {
    "url": "http://non-existent.example.com/",
    "error": "getaddrinfo ENOTFOUND"
  }
]

.compare(object options) -> array

Compares 2 result sets to find any changes.

Example return:

[
  {
    "current": {
      "url": "https://reader.google.com/",
      "statusCode": 404
    },
    "previous": {
      "url": "https://reader.google.com/",
      "statusCode": 200
    }
  }
]
Options
currentResults

Type: array

previousResults

Type: array

Related

License

Medic is released under the MIT license.

Copyright © 2015 Roland Warmerdam.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].