mirror of
https://github.com/encounter/phantomjs.git
synced 2026-03-30 11:35:11 -07:00
26b28d7842
This is very similar to Unix common 'printenv'. http://code.google.com/p/phantomjs/issues/detail?id=271
11 lines
185 B
JavaScript
11 lines
185 B
JavaScript
var system = require('system'),
|
|
env = system.env,
|
|
key;
|
|
|
|
for (key in env) {
|
|
if (env.hasOwnProperty(key)) {
|
|
console.log(key + '=' + env[key]);
|
|
}
|
|
}
|
|
phantom.exit();
|