projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Version 1
[yaffs-website]
/
node_modules
/
phantomjs-prebuilt
/
lib
/
phantom
/
examples
/
printenv.js
diff --git a/node_modules/phantomjs-prebuilt/lib/phantom/examples/printenv.js
b/node_modules/phantomjs-prebuilt/lib/phantom/examples/printenv.js
new file mode 100644
(file)
index 0000000..
6baea03
--- /dev/null
+++ b/
node_modules/phantomjs-prebuilt/lib/phantom/examples/printenv.js
@@ -0,0
+1,10
@@
+var system = require('system'),
+ env = system.env,
+ key;
+
+for (key in env) {
+ if (env.hasOwnProperty(key)) {
+ console.log(key + '=' + env[key]);
+ }
+}
+phantom.exit();