File tree Expand file tree Collapse file tree 15 files changed +368
-9
lines changed Expand file tree Collapse file tree 15 files changed +368
-9
lines changed Original file line number Diff line number Diff line change 5858 " ns" ,
5959 " float32" ,
6060 " base"
61- ]
61+ ],
62+ "__stdlib__" : {
63+ "scaffold" : {
64+ "alias_prefix" : " stdlib_base_complex64_"
65+ }
66+ }
6267}
Original file line number Diff line number Diff line change 5858 " ns" ,
5959 " float64" ,
6060 " base"
61- ]
61+ ],
62+ "__stdlib__" : {
63+ "scaffold" : {
64+ "alias_prefix" : " stdlib_base_complex128_"
65+ }
66+ }
6267}
Original file line number Diff line number Diff line change 5656 " lib" ,
5757 " mathematics" ,
5858 " math"
59- ]
59+ ],
60+ "__stdlib__" : {
61+ "scaffold" : {
62+ "alias_prefix" : " stdlib_base_"
63+ }
64+ }
6065}
Original file line number Diff line number Diff line change 6262 " number" ,
6363 " 32-bit" ,
6464 " ieee754"
65- ]
65+ ],
66+ "__stdlib__" : {
67+ "scaffold" : {
68+ "alias_prefix" : " stdlib_base_float32_"
69+ }
70+ }
6671}
Original file line number Diff line number Diff line change 6161 " number" ,
6262 " 64-bit" ,
6363 " ieee754"
64- ]
64+ ],
65+ "__stdlib__" : {
66+ "scaffold" : {
67+ "alias_prefix" : " stdlib_base_float64_"
68+ }
69+ }
6570}
Original file line number Diff line number Diff line change 1+ /**
2+ * @license Apache-2.0
3+ *
4+ * Copyright (c) 2025 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+ // MODULES //
26+
27+ var setReadOnly = require ( '@stdlib/utils/define-read-only-property' ) ;
28+
29+
30+ // MAIN //
31+
32+ /**
33+ * Top-level namespace.
34+ *
35+ * @namespace ns
36+ */
37+ var ns = { } ;
38+
39+ /**
40+ * @name identity
41+ * @memberof ns
42+ * @readonly
43+ * @type {Function }
44+ * @see {@link module:@stdlib/number/int16/base/identity }
45+ */
46+ setReadOnly ( ns , 'identity' , require ( '@stdlib/number/int16/base/identity' ) ) ;
47+
48+
49+ // EXPORTS //
50+
51+ module . exports = ns ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " @stdlib/number/int16/base" ,
3+ "version" : " 0.0.0" ,
4+ "description" : " Base utilities for signed 16-bit integers." ,
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+ "lib" : " ./lib" ,
19+ "test" : " ./test"
20+ },
21+ "types" : " ./docs/types" ,
22+ "scripts" : {},
23+ "homepage" : " https://github.com/stdlib-js/stdlib" ,
24+ "repository" : {
25+ "type" : " git" ,
26+ "url" : " git://github.com/stdlib-js/stdlib.git"
27+ },
28+ "bugs" : {
29+ "url" : " https://github.com/stdlib-js/stdlib/issues"
30+ },
31+ "dependencies" : {},
32+ "devDependencies" : {},
33+ "engines" : {
34+ "node" : " >=0.10.0" ,
35+ "npm" : " >2.7.0"
36+ },
37+ "os" : [
38+ " aix" ,
39+ " darwin" ,
40+ " freebsd" ,
41+ " linux" ,
42+ " macos" ,
43+ " openbsd" ,
44+ " sunos" ,
45+ " win32" ,
46+ " windows"
47+ ],
48+ "keywords" : [
49+ " stdlib" ,
50+ " stdtypes" ,
51+ " types" ,
52+ " base" ,
53+ " namespace" ,
54+ " ns" ,
55+ " int16" ,
56+ " signed" ,
57+ " integer" ,
58+ " int" ,
59+ " 16-bit"
60+ ],
61+ "__stdlib__" : {
62+ "scaffold" : {
63+ "alias_prefix" : " stdlib_base_int16_"
64+ }
65+ }
66+ }
Original file line number Diff line number Diff line change 1+ /**
2+ * @license Apache-2.0
3+ *
4+ * Copyright (c) 2025 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 . strictEqual ( 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 . strictEqual ( keys . length > 0 , true , 'has keys' ) ;
39+ t . end ( ) ;
40+ } ) ;
Original file line number Diff line number Diff line change 5959 " integer" ,
6060 " int" ,
6161 " 32-bit"
62- ]
62+ ],
63+ "__stdlib__" : {
64+ "scaffold" : {
65+ "alias_prefix" : " stdlib_base_int32_"
66+ }
67+ }
6368}
Original file line number Diff line number Diff line change 1+ /**
2+ * @license Apache-2.0
3+ *
4+ * Copyright (c) 2025 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+ // MODULES //
26+
27+ var setReadOnly = require ( '@stdlib/utils/define-read-only-property' ) ;
28+
29+
30+ // MAIN //
31+
32+ /**
33+ * Top-level namespace.
34+ *
35+ * @namespace ns
36+ */
37+ var ns = { } ;
38+
39+ /**
40+ * @name identity
41+ * @memberof ns
42+ * @readonly
43+ * @type {Function }
44+ * @see {@link module:@stdlib/number/int8/base/identity }
45+ */
46+ setReadOnly ( ns , 'identity' , require ( '@stdlib/number/int8/base/identity' ) ) ;
47+
48+
49+ // EXPORTS //
50+
51+ module . exports = ns ;
You can’t perform that action at this time.
0 commit comments