This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
blink1-run with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
A tiny tool to hook up your blink(1) device to commands on your beloved shell.
blink1-run will execute any given command within your current shell and start with a slow strobe light as an load indicator. Upon completion it will flash in green or red depending on the return state of the executed command.
Most OS need you to be root (e.g. using
sudo) to install a global npm package:
$ npm -g install blink1-run
b1 alias to your command. Hook up your blink(1) device and run:
$ b1 <your-command> <argument-1> <argument-2> ...
$ b1 sleep 5
$ b1 echo simple/single commands can be used without quotation marks
$ b1 "sleep 5 && echo very complex c0mmand && sleep 5"
$ b1 "mysql -u mysqluser -p my_database < huge_database_dump.sql"
$ b1 cat flash_red_if_this_file_does_not_exist
Found a bug? Open an issue here on Github.
Wanna help? Submit a pull request or contact me.
Wanna tip me a beer? Use Bitcoin: 14pSD9AmuNhLDbGRXehxbhwzRSRrkpiAKg
Copyright (c) 2015 Thomas Baumbach email@example.com
Licensed under the MIT License