Skip to content

picidaejs/picidae-transformer-exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, like process.env

  • paths: {array} (default: [])
    same as $PATH, and it would appends the node_modules/.bin to $PATH automatically.

  • cwd: {string} (default: 'curr')

    • curr: process.cwd()
    • file: the markdown file's dirname
    • path/to/cwd: The exact cwd

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors