New:Socket for Asana Is Now Available.Learn more
Get Started

twink

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twink

One-shot task runner and condition checker

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

Ideas for future runners

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

Keywords

oclif

FAQs

Package last updated on 30 Aug 2018

Related posts