0.0.0 • Published 6 years ago
picidae-transformer-exec v0.0.0
picidae-transformer-exec
Execute command and Replace the placeholder by stdout.
- Input
<<EXEC echo abc>>
- Output
abc
Options
cache {boolean} (default:
true
)
cache the latest stdout. If you don't edit the markdown with<<EXEC ...>>
, the content is from cache.env: {Object} (default:
{}
)
The additional env, likeprocess.env
paths: {array} (default:
[]
)
same as$PATH
, and it would appends thenode_modules/.bin
to$PATH
automatically.cwd: {string} (default:
'curr'
)curr
:process.cwd()
file
: the markdown file's dirnamepath/to/cwd
: The exact cwd
0.0.0
6 years ago