README.md (1991B)
1 <!-- 2 3 @license Apache-2.0 4 5 Copyright (c) 2021 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 # Constants 22 23 > 16-bit unsigned integer mathematical constants. 24 25 <section class="usage"> 26 27 ## Usage 28 29 ```javascript 30 var constants = require( '@stdlib/constants/uint16' ); 31 ``` 32 33 #### constants 34 35 16-bit unsigned integer mathematical constants. 36 37 ```javascript 38 var c = constants; 39 // returns {...} 40 ``` 41 42 <!-- <toc pattern="*" > --> 43 44 <div class="namespace-toc"> 45 46 - <span class="signature">[`MAX`][@stdlib/constants/uint16/max]</span><span class="delimiter">: </span><span class="description">maximum unsigned 16-bit integer.</span> 47 - <span class="signature">[`NUM_BYTES`][@stdlib/constants/uint16/num-bytes]</span><span class="delimiter">: </span><span class="description">size (in bytes) of a 16-bit unsigned integer.</span> 48 49 </div> 50 51 <!-- </toc> --> 52 53 </section> 54 55 <!-- /.usage --> 56 57 <section class="examples"> 58 59 ## Examples 60 61 <!-- TODO: better examples --> 62 63 <!-- eslint no-undef: "error" --> 64 65 ```javascript 66 var objectKeys = require( '@stdlib/utils/keys' ); 67 var constants = require( '@stdlib/constants/uint16' ); 68 69 console.log( objectKeys( constants ) ); 70 ``` 71 72 </section> 73 74 <!-- /.examples --> 75 76 <section class="links"> 77 78 <!-- <toc-links> --> 79 80 [@stdlib/constants/uint16/max]: https://www.npmjs.com/package/@stdlib/constants/tree/main/uint16/max 81 82 [@stdlib/constants/uint16/num-bytes]: https://www.npmjs.com/package/@stdlib/constants/tree/main/uint16/num-bytes 83 84 <!-- </toc-links> --> 85 86 </section> 87 88 <!-- /.links -->