Spaces:
Configuration error
Configuration error
|
Download node_modules/capnp-ts/README.md from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/capnp-ts/README.md
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/capnp-ts/README.md
-
curl -L -o README.md https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/capnp-ts/README.md
551 Bytes
| # capnp-ts | |
| A strongly typed [Cap'n Proto](https://capnproto.org/) implementation for the browser and Node.js using TypeScript. | |
| Here's a quick usage example: | |
| ```typescript | |
| import * as capnp from 'capnp-ts'; | |
| import {MyStruct} from './myschema.capnp'; | |
| export function loadMessage(buffer: ArrayBuffer): MyStruct { | |
| const message = capnp.Message.fromArrayBuffer(buffer); | |
| return message.getRoot(MyStruct); | |
| } | |
| ``` | |
| An extended readme is available on the project site: [https://github.com/jdiaz5513/capnp-ts](https://github.com/jdiaz5513/capnp-ts). | |