File tree Expand file tree Collapse file tree 9 files changed +195
-0
lines changed
lib/node_modules/@stdlib/process Expand file tree Collapse file tree 9 files changed +195
-0
lines changed Original file line number Diff line number Diff line change 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: 2.0
20+
21+ /**
22+ * An array containing command-line arguments passed when launching the calling process.
23+ *
24+ * @example
25+ * console.log( ARGV );
26+ * // => [...]
27+ */
28+ declare const ARGV : Array < string > ;
29+
30+
31+ // EXPORTS //
32+
33+ export = ARGV ;
Original file line number Diff line number Diff line change 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 ARGV = require( './index' ) ;
20+
21+
22+ // TESTS //
23+
24+ // The variable is a string array...
25+ {
26+ // tslint:disable-next-line:no-unused-expression
27+ ARGV ; // $ExpectType string[]
28+ }
Original file line number Diff line number Diff line change 2121 "lib" : " ./lib" ,
2222 "test" : " ./test"
2323 },
24+ "types" : " ./docs/types" ,
25+ "types" : " ./docs/types" ,
2426 "scripts" : {},
2527 "homepage" : " https://github.com/stdlib-js/stdlib" ,
2628 "repository" : {
Original file line number Diff line number Diff line change 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: 2.0
20+
21+ /**
22+ * An object containing the user environment.
23+ *
24+ * @example
25+ * console.dir( ENV );
26+ */
27+ declare const ENV : Object ;
28+
29+
30+ // EXPORTS //
31+
32+ export = ENV ;
Original file line number Diff line number Diff line change 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 ENV = require( './index' ) ;
20+
21+
22+ // TESTS //
23+
24+ // The variable is an object...
25+ {
26+ // tslint:disable-next-line:no-unused-expression
27+ ENV ; // $ExpectType Object
28+ }
Original file line number Diff line number Diff line change 2121 "lib" : " ./lib" ,
2222 "test" : " ./test"
2323 },
24+ "types" : " ./docs/types" ,
2425 "scripts" : {},
2526 "homepage" : " https://github.com/stdlib-js/stdlib" ,
2627 "repository" : {
Original file line number Diff line number Diff line change 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: 2.0
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 ;
Original file line number Diff line number Diff line change 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+ // tslint:disable-next-line:no-unused-expression
27+ NODE_VERSION ; // $ExpectType string
28+ }
Original file line number Diff line number Diff line change 2525 "lib" : " ./lib" ,
2626 "test" : " ./test"
2727 },
28+ "types" : " ./docs/types" ,
2829 "scripts" : {},
2930 "homepage" : " https://github.com/stdlib-js/stdlib" ,
3031 "repository" : {
You can’t perform that action at this time.
0 commit comments