File tree Expand file tree Collapse file tree 7 files changed +326
-0
lines changed
lib/node_modules/@stdlib/console Expand file tree Collapse file tree 7 files changed +326
-0
lines changed Original file line number Diff line number Diff line change 1+ <!--
2+
3+ @license Apache-2.0
4+
5+ Copyright (c) 2022 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+ # Console
22+
23+ > Debugger console.
24+
25+ <section class =" usage " >
26+
27+ ## Usage
28+
29+ ``` javascript
30+ var ns = require ( ' @stdlib/console' );
31+ ```
32+
33+ #### ns
34+
35+ Console.
36+
37+ ``` javascript
38+ var o = ns;
39+ // returns {...}
40+ ```
41+
42+ <!-- <toc pattern="*"> -->
43+
44+ <!-- </toc> -->
45+
46+ </section >
47+
48+ <!-- /.usage -->
49+
50+ <section class =" examples " >
51+
52+ ## Examples
53+
54+ <!-- TODO: better examples -->
55+
56+ <!-- eslint no-undef: "error" -->
57+
58+ ``` javascript
59+ var objectKeys = require ( ' @stdlib/utils/keys' );
60+ var ns = require ( ' @stdlib/console' );
61+
62+ console .log ( objectKeys ( ns ) );
63+ ```
64+
65+ </section >
66+
67+ <!-- /.examples -->
68+
69+ <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
70+
71+ <section class =" related " >
72+
73+ </section >
74+
75+ <!-- /.related -->
76+
77+ <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
78+
79+ <section class =" links " >
80+
81+ </section >
82+
83+ <!-- /.links -->
Original file line number Diff line number Diff line change 1+ /*
2+ * @license Apache-2.0
3+ *
4+ * Copyright (c) 2022 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+ /* tslint:disable:max-line-length */
22+ /* tslint:disable:max-file-line-count */
23+
24+ /**
25+ * Interface describing the `console` namespace.
26+ */
27+ interface Namespace { }
28+
29+ /**
30+ * Console.
31+ */
32+ declare var ns : Namespace ;
33+
34+
35+ // EXPORTS //
36+
37+ export = ns ;
Original file line number Diff line number Diff line change 1+ /*
2+ * @license Apache-2.0
3+ *
4+ * Copyright (c) 2022 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+ /* tslint:disable:no-unused-expression */
20+
21+ import ns = require( './index' ) ;
22+
23+
24+ // TESTS //
25+
26+ // The exported value is the expected interface...
27+ {
28+ ns ; // $ExpectType Namespace
29+ }
Original file line number Diff line number Diff line change 1+ /**
2+ * @license Apache-2.0
3+ *
4+ * Copyright (c) 2022 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+ var objectKeys = require ( '@stdlib/utils/keys' ) ;
22+ var ns = require ( './../lib' ) ;
23+
24+ console . log ( objectKeys ( ns ) ) ;
Original file line number Diff line number Diff line change 1+ /**
2+ * @license Apache-2.0
3+ *
4+ * Copyright (c) 2022 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+ * When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.
23+ */
24+
25+ /*
26+ * The following modules are intentionally not exported: tools
27+ */
28+
29+ // MODULES //
30+
31+ var setReadOnly = require ( '@stdlib/utils/define-read-only-property' ) ;
32+
33+
34+ // MAIN //
35+
36+ /**
37+ * Top-level namespace.
38+ *
39+ * @namespace ns
40+ */
41+ var ns = { } ;
42+
43+ /**
44+ * @name log
45+ * @memberof ns
46+ * @readonly
47+ * @type {Function }
48+ * @see {@link module:@stdlib/console/log }
49+ */
50+ setReadOnly ( ns , 'log' , require ( '@stdlib/console/log' ) ) ;
51+
52+
53+ // EXPORTS //
54+
55+ module . exports = ns ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " @stdlib/console" ,
3+ "version" : " 0.0.0" ,
4+ "description" : " Debugger console." ,
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/index.js" ,
17+ "directories" : {
18+ "doc" : " ./docs" ,
19+ "example" : " ./examples" ,
20+ "lib" : " ./lib" ,
21+ "test" : " ./test"
22+ },
23+ "types" : " ./docs/types" ,
24+ "scripts" : {},
25+ "homepage" : " https://github.com/stdlib-js/stdlib" ,
26+ "repository" : {
27+ "type" : " git" ,
28+ "url" : " git://github.com/stdlib-js/stdlib.git"
29+ },
30+ "bugs" : {
31+ "url" : " https://github.com/stdlib-js/stdlib/issues"
32+ },
33+ "dependencies" : {},
34+ "devDependencies" : {},
35+ "engines" : {
36+ "node" : " >=0.10.0" ,
37+ "npm" : " >2.7.0"
38+ },
39+ "os" : [
40+ " aix" ,
41+ " darwin" ,
42+ " freebsd" ,
43+ " linux" ,
44+ " macos" ,
45+ " openbsd" ,
46+ " sunos" ,
47+ " win32" ,
48+ " windows"
49+ ],
50+ "keywords" : [
51+ " stdlib" ,
52+ " namespace" ,
53+ " ns" ,
54+ " console" ,
55+ " log" ,
56+ " debug"
57+ ]
58+ }
Original file line number Diff line number Diff line change 1+ /**
2+ * @license Apache-2.0
3+ *
4+ * Copyright (c) 2022 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 tape = require ( 'tape' ) ;
24+ var objectKeys = require ( '@stdlib/utils/keys' ) ;
25+ var ns = require ( './../lib' ) ;
26+
27+
28+ // TESTS //
29+
30+ tape ( 'main export is an object' , function test ( t ) {
31+ t . ok ( true , __filename ) ;
32+ t . equal ( typeof ns , 'object' , 'main export is an object' ) ;
33+ t . end ( ) ;
34+ } ) ;
35+
36+ tape ( 'the exported object contains key-value pairs' , function test ( t ) {
37+ var keys = objectKeys ( ns ) ;
38+ t . equal ( keys . length > 0 , true , 'has keys' ) ;
39+ t . end ( ) ;
40+ } ) ;
You can’t perform that action at this time.
0 commit comments