# HG changeset patch # User Yaroslav Zhuravlev # Date 1586168231 -3600 # Node ID bb0a2fbdc88600076e7543335b92bf337e109090 # Parent 3ca5edd3ada3a8bcd7e1594c6b519ff75c6b7616 Updated example in njs cli. diff --git a/xml/en/docs/njs/cli.xml b/xml/en/docs/njs/cli.xml --- a/xml/en/docs/njs/cli.xml +++ b/xml/en/docs/njs/cli.xml @@ -9,7 +9,7 @@
+ rev="4">
@@ -29,14 +29,33 @@ are not available in the utility. 8 $ njs ->> var o = {a:[]} -undefined - ->> JSON.stringify(o, undefined,1) -{ - "a": [ - - ] +>> globalThis +global { + njs: njs { + version: '0.3.9' + }, + global: [Circular], + process: process { + argv: [ + '/usr/bin/njs' + ], + env: { + PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', + HOSTNAME: 'f777c149d4f8', + TERM: 'xterm', + NGINX_VERSION: '1.17.9', + NJS_VERSION: '0.3.9', + PKG_RELEASE: '1~buster', + HOME: '/root' + } + }, + console: { + log: [Function: native], + dump: [Function: native], + time: [Function: native], + timeEnd: [Function: native] + }, + print: [Function: native] } >> diff --git a/xml/ru/docs/njs/cli.xml b/xml/ru/docs/njs/cli.xml --- a/xml/ru/docs/njs/cli.xml +++ b/xml/ru/docs/njs/cli.xml @@ -9,7 +9,7 @@
+ rev="4">
@@ -28,14 +28,33 @@ 8 $ njs ->> var o = {a:[]} -undefined - ->> JSON.stringify(o, undefined,1) -{ - "a": [ - - ] +>> globalThis +global { + njs: njs { + version: '0.3.9' + }, + global: [Circular], + process: process { + argv: [ + '/usr/bin/njs' + ], + env: { + PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', + HOSTNAME: 'f777c149d4f8', + TERM: 'xterm', + NGINX_VERSION: '1.17.9', + NJS_VERSION: '0.3.9', + PKG_RELEASE: '1~buster', + HOME: '/root' + } + }, + console: { + log: [Function: native], + dump: [Function: native], + time: [Function: native], + timeEnd: [Function: native] + }, + print: [Function: native] } >>