time-to-botec/squiggle/node_modules/@stdlib/number/uint8/base/README.md

89 lines
2.1 KiB
Markdown
Raw Normal View History

<!--
@license Apache-2.0
Copyright (c) 2018 The Stdlib Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
# Uint8
> Base utilities for unsigned 8-bit integers.
<section class="usage">
## Usage
```javascript
var ns = require( '@stdlib/number/uint8/base' );
```
#### ns
Base utilities for unsigned 8-bit integers.
```javascript
var o = ns;
// returns {...}
```
<!-- <toc pattern="*"> -->
<div class="namespace-toc">
- <span class="signature">[`fromBinaryStringUint8( bstr )`][@stdlib/number/uint8/base/from-binary-string]</span><span class="delimiter">: </span><span class="description">create an unsigned 8-bit integer from a literal bit representation.</span>
- <span class="signature">[`toBinaryStringUint8( x )`][@stdlib/number/uint8/base/to-binary-string]</span><span class="delimiter">: </span><span class="description">return a string giving the literal bit representation of an unsigned 8-bit integer.</span>
</div>
<!-- </toc> -->
</section>
<!-- /.usage -->
<section class="examples">
## Examples
<!-- TODO: better examples -->
<!-- eslint no-undef: "error" -->
```javascript
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/number/uint8/base' );
console.log( objectKeys( ns ) );
```
</section>
<!-- /.examples -->
<section class="links">
<!-- <toc-links> -->
[@stdlib/number/uint8/base/from-binary-string]: https://www.npmjs.com/package/@stdlib/number/tree/main/uint8/base/from-binary-string
[@stdlib/number/uint8/base/to-binary-string]: https://www.npmjs.com/package/@stdlib/number/tree/main/uint8/base/to-binary-string
<!-- </toc-links> -->
</section>
<!-- /.links -->