File tree Expand file tree Collapse file tree 14 files changed +85
-25
lines changed
lib/node_modules/@stdlib/process Expand file tree Collapse file tree 14 files changed +85
-25
lines changed Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21+ // MODULES //
22+
23+ var proc = require ( 'process' ) ;
24+
25+
26+ // MAIN //
27+
2128/**
2229* An array containing command-line arguments passed when launching the calling process.
2330*
2835* console.log( ARGV );
2936* // => [...]
3037*/
31- var ARGV = process . argv ;
38+ var ARGV = proc . argv ;
3239
3340
3441// EXPORTS //
Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21+ // MODULES //
22+
23+ var proc = require ( 'process' ) ;
24+
25+
2126// MAIN //
2227
2328/**
3439*/
3540function chdir ( path ) {
3641 try {
37- process . chdir ( path ) ;
42+ proc . chdir ( path ) ;
3843 } catch ( err ) {
3944 return err ;
4045 }
Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21+ // MODULES //
22+
23+ var proc = require ( 'process' ) ;
24+
25+
2126// MAIN //
2227
2328/**
2732*
2833* @example
2934* var dir = cwd();
30- * // returns '/path/to/current/working/directory'
35+ * // e.g., returns '/path/to/current/working/directory'
3136*/
3237function cwd ( ) {
33- return process . cwd ( ) ;
38+ return proc . cwd ( ) ;
3439}
3540
3641
Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21+ // MODULES //
22+
23+ var proc = require ( 'process' ) ;
24+
25+
26+ // MAIN //
27+
2128/**
2229* An object containing the user environment.
2330*
2734* @example
2835* console.dir( ENV );
2936*/
30- var ENV = process . env ; // eslint-disable-line no-process-env
37+ var ENV = proc . env ;
3138
3239
3340// EXPORTS //
Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21+ // MODULES //
22+
23+ var proc = require ( 'process' ) ;
24+
25+
26+ // MAIN //
27+
2128/**
2229* Returns the effective numeric group identity of the calling process.
2330*
2936* @example
3037* var gid = getegid();
3138*/
32- var getegid = process . getegid ;
39+ var getegid = proc . getegid ;
3340
3441
3542// EXPORTS //
Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21+ // MODULES //
22+
23+ var proc = require ( 'process' ) ;
24+
25+
26+ // MAIN //
27+
2128/**
2229* Returns the effective numeric user identity of the calling process.
2330*
2936* @example
3037* var uid = geteuid();
3138*/
32- var geteuid = process . geteuid ;
39+ var geteuid = proc . geteuid ;
3340
3441
3542// EXPORTS //
Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21+ // MODULES //
22+
23+ var proc = require ( 'process' ) ;
24+
25+
26+ // MAIN //
27+
2128/**
2229* Returns the numeric group identity of the calling process.
2330*
2936* @example
3037* var gid = getgid();
3138*/
32- var getgid = process . getgid ;
39+ var getgid = proc . getgid ;
3340
3441
3542// EXPORTS //
Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21+ // MODULES //
22+
23+ var proc = require ( 'process' ) ;
24+
25+
26+ // MAIN //
27+
2128/**
2229* Returns the numeric user identity of the calling process.
2330*
2936* @example
3037* var uid = getuid();
3138*/
32- var getuid = process . getuid ;
39+ var getuid = proc . getuid ;
3340
3441
3542// EXPORTS //
Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21+ // MODULES //
22+
23+ var proc = require ( 'process' ) ;
24+
25+
2126// EXPORTS //
2227
23- module . exports = process ;
28+ module . exports = proc ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ var isFunction = require( '@stdlib/assert/is-function' );
3636* @example
3737* function onRead( error ) {
3838* if ( error ) {
39- * throw error;
39+ * return console. error( error.message ) ;
4040* }
4141* }
4242*
You can’t perform that action at this time.
0 commit comments