Skip to content

Commit

Permalink
document parse env
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Apr 15, 2013
1 parent 5757c42 commit cc0efba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ var parse = require('shell-quote').parse;
Return a quoted string for the array `args` suitable for using in shell
commands.

## parse(cmd)
## parse(cmd, env={})

Return an array of arguments from the quoted string `cmd`.

Interpolate embedded bash-style `$VARNAME` and `${VARNAME}` variables with
the `env` object which like bash will replace undefined variables with `""`.

# install

With [npm](http://npmjs.org) do:
Expand Down

0 comments on commit cc0efba

Please sign in to comment.