Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aviate-labs/io.mo
I/O Primitives for Motoko
https://github.com/aviate-labs/io.mo
Last synced: about 2 months ago
JSON representation
I/O Primitives for Motoko
- Host: GitHub
- URL: https://github.com/aviate-labs/io.mo
- Owner: aviate-labs
- License: apache-2.0
- Created: 2021-08-25T15:46:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-15T21:04:35.000Z (over 1 year ago)
- Last Synced: 2024-01-26T10:36:03.788Z (5 months ago)
- Language: Motoko
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-motoko - io package - Basic Interfaces for I/O Primitives. (Registries / Web Programming)
README
# Basic Interfaces for I/O Primitives
## Usage
```motoko
let data = Iter.fromArray(Blob.toArray(Text.encodeUtf8(
"Text or something else that can be converted to bytes.",
)));let reader = IO.fromIter(data);
switch (IO.readAll(reader)) {
case (#ok(bs)) // [...].size() == 54.
...
};
```