[Pkg-javascript-commits] [node-shell-quote] 34/137: document parse env
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 19:19:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-shell-quote.
commit cc0efba0bce75aaab1ead72e81470154a71ec525
Author: James Halliday <mail at substack.net>
Date: Sun Apr 14 21:34:06 2013 -0700
document parse env
---
readme.markdown | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/readme.markdown b/readme.markdown
index 01af175..2e21a5a 100644
--- a/readme.markdown
+++ b/readme.markdown
@@ -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:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-shell-quote.git
More information about the Pkg-javascript-commits
mailing list