0.1.3 • Published 3 years ago

remark-unixpipe v0.1.3

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
3 years ago

remark-unixpipe

remark-unixpipe will, for a Code Block with the lang "unixpipe", pipe it's body through the command specified in it's meta. tree

This means the following code:

```unixpipe env NAME="World" ./res/draw_graphviz res/hello_world.png "Hello World"
digraph G {
  "Hello" -> "$NAME"
}
```

Results in:

Hello World

When the contents of draw_graphviz is:

#!/bin/bash

cat /dev/stdin | envsubst | dot -Tpng > "$1"
echo "![$2]($1)"

Options

Please see test.js for examples of options.

Notes

This documentation was generated by running cat README.src.md | node ./test.js > README.md

Created by @forbesmyester License MIT