@ohos-ports/stdlib-process 0.0.0-stage → 0.4.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +177 -0
- package/NOTICE +1 -0
- package/README.md +220 -2
- package/SECURITY.md +5 -0
- package/argv/README.md +104 -0
- package/argv/docs/repl.txt +22 -0
- package/argv/docs/types/index.d.ts +33 -0
- package/argv/docs/types/test.ts +28 -0
- package/argv/lib/browser.js +28 -0
- package/argv/lib/index.js +40 -0
- package/argv/lib/main.js +43 -0
- package/argv/package.json +70 -0
- package/chdir/README.md +124 -0
- package/chdir/docs/repl.txt +25 -0
- package/chdir/docs/types/index.d.ts +42 -0
- package/chdir/docs/types/test.ts +45 -0
- package/chdir/lib/index.js +42 -0
- package/chdir/lib/main.js +52 -0
- package/chdir/lib/polyfill.js +42 -0
- package/chdir/package.json +73 -0
- package/cwd/README.md +140 -0
- package/cwd/bin/cli +60 -0
- package/cwd/docs/repl.txt +17 -0
- package/cwd/docs/types/index.d.ts +35 -0
- package/cwd/docs/types/test.ts +33 -0
- package/cwd/docs/usage.txt +8 -0
- package/cwd/etc/cli_opts.json +14 -0
- package/cwd/lib/index.js +40 -0
- package/cwd/lib/main.js +44 -0
- package/cwd/lib/polyfill.js +40 -0
- package/cwd/package.json +75 -0
- package/docs/types/index.d.ts +225 -0
- package/env/README.md +104 -0
- package/env/docs/repl.txt +12 -0
- package/env/docs/types/index.d.ts +32 -0
- package/env/docs/types/test.ts +28 -0
- package/env/lib/browser.js +28 -0
- package/env/lib/index.js +39 -0
- package/env/lib/main.js +42 -0
- package/env/package.json +72 -0
- package/exec-path/README.md +90 -0
- package/exec-path/docs/repl.txt +13 -0
- package/exec-path/docs/types/index.d.ts +36 -0
- package/exec-path/docs/types/test.ts +28 -0
- package/exec-path/lib/browser.js +23 -0
- package/exec-path/lib/index.js +55 -0
- package/exec-path/lib/main.js +46 -0
- package/exec-path/package.json +72 -0
- package/getegid/README.md +107 -0
- package/getegid/docs/repl.txt +20 -0
- package/getegid/docs/types/index.d.ts +38 -0
- package/getegid/docs/types/test.ts +33 -0
- package/getegid/lib/index.js +39 -0
- package/getegid/lib/main.js +45 -0
- package/getegid/lib/native.js +44 -0
- package/getegid/lib/polyfill.js +40 -0
- package/getegid/package.json +76 -0
- package/geteuid/README.md +111 -0
- package/geteuid/docs/repl.txt +20 -0
- package/geteuid/docs/types/index.d.ts +38 -0
- package/geteuid/docs/types/test.ts +33 -0
- package/geteuid/lib/index.js +39 -0
- package/geteuid/lib/main.js +45 -0
- package/geteuid/lib/native.js +44 -0
- package/geteuid/lib/polyfill.js +40 -0
- package/geteuid/package.json +76 -0
- package/getgid/README.md +107 -0
- package/getgid/docs/repl.txt +19 -0
- package/getgid/docs/types/index.d.ts +38 -0
- package/getgid/docs/types/test.ts +33 -0
- package/getgid/lib/index.js +39 -0
- package/getgid/lib/main.js +45 -0
- package/getgid/lib/native.js +44 -0
- package/getgid/lib/polyfill.js +40 -0
- package/getgid/package.json +75 -0
- package/getuid/README.md +111 -0
- package/getuid/docs/repl.txt +19 -0
- package/getuid/docs/types/index.d.ts +38 -0
- package/getuid/docs/types/test.ts +33 -0
- package/getuid/lib/index.js +39 -0
- package/getuid/lib/main.js +45 -0
- package/getuid/lib/native.js +44 -0
- package/getuid/lib/polyfill.js +40 -0
- package/getuid/package.json +75 -0
- package/lib/index.js +150 -0
- package/node-version/README.md +135 -0
- package/node-version/bin/cli +60 -0
- package/node-version/docs/repl.txt +12 -0
- package/node-version/docs/types/index.d.ts +42 -0
- package/node-version/docs/types/test.ts +28 -0
- package/node-version/docs/usage.txt +8 -0
- package/node-version/etc/cli_opts.json +14 -0
- package/node-version/lib/browser.js +23 -0
- package/node-version/lib/index.js +60 -0
- package/node-version/lib/main.js +43 -0
- package/node-version/lib/process.js +28 -0
- package/node-version/package.json +73 -0
- package/package.json +121 -4
- package/read-stdin/README.md +152 -0
- package/read-stdin/docs/types/index.d.ts +108 -0
- package/read-stdin/docs/types/test.ts +73 -0
- package/read-stdin/lib/browser.js +66 -0
- package/read-stdin/lib/index.js +47 -0
- package/read-stdin/lib/main.js +159 -0
- package/read-stdin/package.json +67 -0
- package/umask/README.md +281 -0
- package/umask/bin/cli +84 -0
- package/umask/docs/repl.txt +133 -0
- package/umask/docs/types/index.d.ts +69 -0
- package/umask/docs/types/test.ts +62 -0
- package/umask/docs/usage.txt +9 -0
- package/umask/etc/cli_opts.json +22 -0
- package/umask/lib/browser.js +133 -0
- package/umask/lib/from_symbolic.js +218 -0
- package/umask/lib/index.js +40 -0
- package/umask/lib/main.js +128 -0
- package/umask/lib/octal_codes.json +10 -0
- package/umask/lib/to_symbolic.js +57 -0
- package/umask/package.json +78 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
|
|
3
|
+
@license Apache-2.0
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2018 The Stdlib Authors.
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
you may not use this file except in compliance with the License.
|
|
9
|
+
You may obtain a copy of the License at
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
See the License for the specific language governing permissions and
|
|
17
|
+
limitations under the License.
|
|
18
|
+
|
|
19
|
+
-->
|
|
20
|
+
|
|
21
|
+
# Node Version
|
|
22
|
+
|
|
23
|
+
> Node version.
|
|
24
|
+
|
|
25
|
+
<section class="usage">
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
```javascript
|
|
30
|
+
var NODE_VERSION = require( '@stdlib/process/node-version' );
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
#### NODE_VERSION
|
|
34
|
+
|
|
35
|
+
Node version.
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
console.log( NODE_VERSION );
|
|
39
|
+
// => <string>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
</section>
|
|
43
|
+
|
|
44
|
+
<!-- /.usage -->
|
|
45
|
+
|
|
46
|
+
<section class="notes">
|
|
47
|
+
|
|
48
|
+
## Notes
|
|
49
|
+
|
|
50
|
+
- In browser environments and environments other than Node.js the Node version is equal to `null`.
|
|
51
|
+
|
|
52
|
+
</section>
|
|
53
|
+
|
|
54
|
+
<!-- /.notes -->
|
|
55
|
+
|
|
56
|
+
<section class="examples">
|
|
57
|
+
|
|
58
|
+
## Examples
|
|
59
|
+
|
|
60
|
+
<!-- eslint no-undef: "error" -->
|
|
61
|
+
|
|
62
|
+
```javascript
|
|
63
|
+
var semver = require( 'semver' );
|
|
64
|
+
var NODE_VERSION = require( '@stdlib/process/node-version' );
|
|
65
|
+
|
|
66
|
+
if ( semver.lt( NODE_VERSION, '1.0.0' ) ) {
|
|
67
|
+
console.log( 'Running on a pre-io.js version...' );
|
|
68
|
+
}
|
|
69
|
+
else if ( semver.lt( NODE_VERSION, '4.0.0' ) ) {
|
|
70
|
+
console.log( 'Running on an io.js version...' );
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
console.log( 'Running on a post-io.js version...' );
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
</section>
|
|
78
|
+
|
|
79
|
+
<!-- /.examples -->
|
|
80
|
+
|
|
81
|
+
* * *
|
|
82
|
+
|
|
83
|
+
<section class="cli">
|
|
84
|
+
|
|
85
|
+
## CLI
|
|
86
|
+
|
|
87
|
+
<section class="usage">
|
|
88
|
+
|
|
89
|
+
### Usage
|
|
90
|
+
|
|
91
|
+
```text
|
|
92
|
+
Usage: node-version [options]
|
|
93
|
+
|
|
94
|
+
Options:
|
|
95
|
+
|
|
96
|
+
-h, --help Print this message.
|
|
97
|
+
-V, --version Print the package version.
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
</section>
|
|
101
|
+
|
|
102
|
+
<!-- /.usage -->
|
|
103
|
+
|
|
104
|
+
<section class="examples">
|
|
105
|
+
|
|
106
|
+
### Examples
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
$ node-version
|
|
110
|
+
<node_version>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
</section>
|
|
114
|
+
|
|
115
|
+
<!-- /.examples -->
|
|
116
|
+
|
|
117
|
+
</section>
|
|
118
|
+
|
|
119
|
+
<!-- /.cli -->
|
|
120
|
+
|
|
121
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
122
|
+
|
|
123
|
+
<section class="related">
|
|
124
|
+
|
|
125
|
+
</section>
|
|
126
|
+
|
|
127
|
+
<!-- /.related -->
|
|
128
|
+
|
|
129
|
+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
130
|
+
|
|
131
|
+
<section class="links">
|
|
132
|
+
|
|
133
|
+
</section>
|
|
134
|
+
|
|
135
|
+
<!-- /.links -->
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license Apache-2.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
'use strict';
|
|
22
|
+
|
|
23
|
+
// MODULES //
|
|
24
|
+
|
|
25
|
+
var resolve = require( 'path' ).resolve;
|
|
26
|
+
var readFileSync = require( '@stdlib/fs/read-file' ).sync;
|
|
27
|
+
var CLI = require( '@stdlib/cli/ctor' );
|
|
28
|
+
var VERSION = require( './../lib' );
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
// MAIN //
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Main execution sequence.
|
|
35
|
+
*
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
function main() {
|
|
39
|
+
var flags;
|
|
40
|
+
var cli;
|
|
41
|
+
|
|
42
|
+
// Create a command-line interface:
|
|
43
|
+
cli = new CLI({
|
|
44
|
+
'pkg': require( './../package.json' ),
|
|
45
|
+
'options': require( './../etc/cli_opts.json' ),
|
|
46
|
+
'help': readFileSync( resolve( __dirname, '..', 'docs', 'usage.txt' ), {
|
|
47
|
+
'encoding': 'utf8'
|
|
48
|
+
})
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
// Get any provided command-line options:
|
|
52
|
+
flags = cli.flags();
|
|
53
|
+
if ( flags.help || flags.version ) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
console.log( 'v%s', VERSION ); // eslint-disable-line no-console
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
main();
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @license Apache-2.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2019 The Stdlib Authors.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
// TypeScript Version: 4.1
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Node version.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* var semver = require( 'semver' );
|
|
26
|
+
*
|
|
27
|
+
* if ( semver.lt( NODE_VERSION, '1.0.0' ) ) {
|
|
28
|
+
* console.log( 'Running on a pre-io.js version...' );
|
|
29
|
+
* }
|
|
30
|
+
* else if ( semver.lt( NODE_VERSION, '4.0.0' ) ) {
|
|
31
|
+
* console.log( 'Running on an io.js version...' );
|
|
32
|
+
* }
|
|
33
|
+
* else {
|
|
34
|
+
* console.log( 'Running on a post-io.js version...' );
|
|
35
|
+
* }
|
|
36
|
+
*/
|
|
37
|
+
declare const NODE_VERSION: string;
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
// EXPORTS //
|
|
41
|
+
|
|
42
|
+
export = NODE_VERSION;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @license Apache-2.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2019 The Stdlib Authors.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import NODE_VERSION = require( './index' );
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// TESTS //
|
|
23
|
+
|
|
24
|
+
// The variable is a string...
|
|
25
|
+
{
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
27
|
+
NODE_VERSION; // $ExpectType string
|
|
28
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Apache-2.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
'use strict';
|
|
20
|
+
|
|
21
|
+
// EXPORTS //
|
|
22
|
+
|
|
23
|
+
module.exports = null;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Apache-2.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
'use strict';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Node version.
|
|
23
|
+
*
|
|
24
|
+
* @module @stdlib/process/node-version
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* var semver = require( 'semver' );
|
|
28
|
+
* var VERSION = require( '@ohos-ports/stdlib-process/node-version' );
|
|
29
|
+
*
|
|
30
|
+
* if ( semver.lt( VERSION, '1.0.0' ) ) {
|
|
31
|
+
* console.log( 'Running on a pre-io.js version...' );
|
|
32
|
+
* }
|
|
33
|
+
* else if ( semver.lt( VERSION, '4.0.0' ) ) {
|
|
34
|
+
* console.log( 'Running on an io.js version...' );
|
|
35
|
+
* }
|
|
36
|
+
* else {
|
|
37
|
+
* console.log( 'Running on a post-io.js version...' );
|
|
38
|
+
* }
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
// MODULES //
|
|
42
|
+
|
|
43
|
+
var IS_NODE = require( '@ohos-ports/stdlib-assert/is-node' );
|
|
44
|
+
var node = require( './main.js' );
|
|
45
|
+
var browser = require( './browser.js' );
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
// MAIN //
|
|
49
|
+
|
|
50
|
+
var VERSION;
|
|
51
|
+
if ( IS_NODE ) {
|
|
52
|
+
VERSION = node;
|
|
53
|
+
} else {
|
|
54
|
+
VERSION = browser;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
// EXPORTS //
|
|
59
|
+
|
|
60
|
+
module.exports = VERSION;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Apache-2.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
'use strict';
|
|
20
|
+
|
|
21
|
+
// MODULES //
|
|
22
|
+
|
|
23
|
+
var proc = require( './process.js' );
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// MAIN //
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Node version.
|
|
30
|
+
*
|
|
31
|
+
* @constant
|
|
32
|
+
* @type {string}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* console.log( VERSION );
|
|
36
|
+
* // => <string>
|
|
37
|
+
*/
|
|
38
|
+
var VERSION = proc.versions.node;
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
// EXPORTS //
|
|
42
|
+
|
|
43
|
+
module.exports = VERSION;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Apache-2.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
'use strict';
|
|
20
|
+
|
|
21
|
+
// MODULES //
|
|
22
|
+
|
|
23
|
+
var proc = require( 'process' );
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// EXPORTS //
|
|
27
|
+
|
|
28
|
+
module.exports = proc;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stdlib/process/node-version",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Node version.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "The Stdlib Authors",
|
|
8
|
+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
|
|
9
|
+
},
|
|
10
|
+
"contributors": [
|
|
11
|
+
{
|
|
12
|
+
"name": "The Stdlib Authors",
|
|
13
|
+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"bin": {
|
|
17
|
+
"node-version": "./bin/cli"
|
|
18
|
+
},
|
|
19
|
+
"main": "./lib",
|
|
20
|
+
"browser": {
|
|
21
|
+
"./lib": "./lib/browser.js",
|
|
22
|
+
"process": "process/"
|
|
23
|
+
},
|
|
24
|
+
"directories": {
|
|
25
|
+
"doc": "./docs",
|
|
26
|
+
"example": "./examples",
|
|
27
|
+
"lib": "./lib",
|
|
28
|
+
"test": "./test"
|
|
29
|
+
},
|
|
30
|
+
"types": "./docs/types",
|
|
31
|
+
"scripts": {},
|
|
32
|
+
"homepage": "https://github.com/stdlib-js/stdlib",
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git://github.com/stdlib-js/stdlib.git"
|
|
36
|
+
},
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {},
|
|
41
|
+
"devDependencies": {},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=0.10.0",
|
|
44
|
+
"npm": ">2.7.0"
|
|
45
|
+
},
|
|
46
|
+
"os": [
|
|
47
|
+
"aix",
|
|
48
|
+
"darwin",
|
|
49
|
+
"freebsd",
|
|
50
|
+
"linux",
|
|
51
|
+
"macos",
|
|
52
|
+
"openbsd",
|
|
53
|
+
"sunos",
|
|
54
|
+
"win32",
|
|
55
|
+
"windows",
|
|
56
|
+
"openharmony"
|
|
57
|
+
],
|
|
58
|
+
"keywords": [
|
|
59
|
+
"stdlib",
|
|
60
|
+
"stdutils",
|
|
61
|
+
"stdutil",
|
|
62
|
+
"utils",
|
|
63
|
+
"util",
|
|
64
|
+
"utilities",
|
|
65
|
+
"utility",
|
|
66
|
+
"node",
|
|
67
|
+
"nodejs",
|
|
68
|
+
"version",
|
|
69
|
+
"runtime",
|
|
70
|
+
"environment",
|
|
71
|
+
"semver"
|
|
72
|
+
]
|
|
73
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,123 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/stdlib-process",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.4.1-beta.1",
|
|
4
|
+
"description": "Process utilities.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "The Stdlib Authors",
|
|
8
|
+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
|
|
9
|
+
},
|
|
10
|
+
"contributors": [
|
|
11
|
+
{
|
|
12
|
+
"name": "The Stdlib Authors",
|
|
13
|
+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"main": "./lib",
|
|
17
|
+
"directories": {
|
|
18
|
+
"doc": "./docs",
|
|
19
|
+
"lib": "./lib"
|
|
20
|
+
},
|
|
21
|
+
"types": "./docs/types",
|
|
22
|
+
"scripts": {},
|
|
23
|
+
"homepage": "https://stdlib.io",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/ohos-ports/ohos-ports.git",
|
|
27
|
+
"directory": "ports/stdlib-process/0.4.1"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/ohos-ports/ohos-ports/issues"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@ohos-ports/stdlib-assert": "^0.4.1-beta.2",
|
|
34
|
+
"@ohos-ports/stdlib-buffer": "^0.4.1-beta.1",
|
|
35
|
+
"@ohos-ports/stdlib-cli": "^0.4.1-beta.2",
|
|
36
|
+
"@ohos-ports/stdlib-fs": "^0.4.1-beta.3",
|
|
37
|
+
"@ohos-ports/stdlib-streams": "^0.4.1-beta.1",
|
|
38
|
+
"@ohos-ports/stdlib-string": "^0.4.1-beta.2",
|
|
39
|
+
"@ohos-ports/stdlib-utils": "^0.4.1-beta.1"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=0.10.0",
|
|
44
|
+
"npm": ">2.7.0"
|
|
45
|
+
},
|
|
46
|
+
"os": [
|
|
47
|
+
"aix",
|
|
48
|
+
"darwin",
|
|
49
|
+
"freebsd",
|
|
50
|
+
"linux",
|
|
51
|
+
"macos",
|
|
52
|
+
"openbsd",
|
|
53
|
+
"sunos",
|
|
54
|
+
"win32",
|
|
55
|
+
"windows",
|
|
56
|
+
"openharmony"
|
|
57
|
+
],
|
|
58
|
+
"keywords": [
|
|
59
|
+
"stdlib",
|
|
60
|
+
"standard",
|
|
61
|
+
"library",
|
|
62
|
+
"std",
|
|
63
|
+
"lib",
|
|
64
|
+
"process",
|
|
65
|
+
"proc",
|
|
66
|
+
"utilities",
|
|
67
|
+
"utility",
|
|
68
|
+
"utils",
|
|
69
|
+
"util"
|
|
70
|
+
],
|
|
71
|
+
"funding": {
|
|
72
|
+
"type": "opencollective",
|
|
73
|
+
"url": "https://opencollective.com/stdlib"
|
|
74
|
+
},
|
|
75
|
+
"bundledDependencies": [
|
|
76
|
+
"@stdlib/array",
|
|
77
|
+
"@stdlib/assert",
|
|
78
|
+
"@stdlib/bigint",
|
|
79
|
+
"@stdlib/blas",
|
|
80
|
+
"@stdlib/boolean",
|
|
81
|
+
"@stdlib/buffer",
|
|
82
|
+
"@stdlib/cli",
|
|
83
|
+
"@stdlib/complex",
|
|
84
|
+
"@stdlib/constants",
|
|
85
|
+
"@stdlib/dstructs",
|
|
86
|
+
"@stdlib/fs",
|
|
87
|
+
"@stdlib/function",
|
|
88
|
+
"@stdlib/iter",
|
|
89
|
+
"@stdlib/lapack",
|
|
90
|
+
"@stdlib/math",
|
|
91
|
+
"@stdlib/napi",
|
|
92
|
+
"@stdlib/ndarray",
|
|
93
|
+
"@stdlib/nlp",
|
|
94
|
+
"@stdlib/number",
|
|
95
|
+
"@stdlib/object",
|
|
96
|
+
"@stdlib/os",
|
|
97
|
+
"@stdlib/proxy",
|
|
98
|
+
"@stdlib/random",
|
|
99
|
+
"@stdlib/regexp",
|
|
100
|
+
"@stdlib/slice",
|
|
101
|
+
"@stdlib/stats",
|
|
102
|
+
"@stdlib/streams",
|
|
103
|
+
"@stdlib/strided",
|
|
104
|
+
"@stdlib/string",
|
|
105
|
+
"@stdlib/symbol",
|
|
106
|
+
"@stdlib/time",
|
|
107
|
+
"@stdlib/types",
|
|
108
|
+
"@stdlib/utils",
|
|
109
|
+
"@stdlib/wasm",
|
|
110
|
+
"core-util-is",
|
|
111
|
+
"debug",
|
|
112
|
+
"inherits",
|
|
113
|
+
"isarray",
|
|
114
|
+
"minimist",
|
|
115
|
+
"ms",
|
|
116
|
+
"process-nextick-args",
|
|
117
|
+
"readable-stream",
|
|
118
|
+
"safe-buffer",
|
|
119
|
+
"string_decoder",
|
|
120
|
+
"util-deprecate",
|
|
121
|
+
"@stdlib/process"
|
|
122
|
+
]
|
|
123
|
+
}
|