remark-unixpipe

0.1.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i remark-unixpipe

Weekly Downloads

4

Version

0.1.3

License

GPL-3.0-or-later

Unpacked Size

13 kB

Total Files

8

Last publish

Collaborators

  • forbesmyster