twink
One-shot task runner and condition checker
Last updated 10 months ago by austindebruyn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install twink 
SYNC missed versions from official npm registry.

twink

One-shot task runner and condition checker

oclif Version Downloads/week License

Usage

twink is an experimental swiss-army knife for checking the output of short-lived tasks.

Twinking HTTP

# Exits successfully if a 200 is returned.
$ twink https://website.com
# Exits successfully if a 404 is returned.
$ twink https://website.com -e 404
# Exits successfully if the string "Hocus Pocus" appears in the HTTP response
$ twink https://website.com -e "Hocus Pocus"

Twinking commands

# Exits successfully if the `file` command exits successfully
$ twink "file filename.mp3"
# Exits successfully if the `file` if the string "JPEG image data, Exif standard" appears
$ twink "file filename.mp3" -e "JPEG image data, Exif standard"

Future work

Ideas for uses

  1. Health checking a number of endpoints
  2. Multiple quick expectations in automated testing
  3. More to come...

Ideas for future runners

# See if the given port is open
$ twink 192.168.0.0:443

Current Tags

  • 1.0.0                                ...           latest (10 months ago)

2 Versions

  • 1.0.0                                ...           10 months ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 0
Dependencies (5)
Dev Dependencies (11)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |