Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ deepStrictEqual(decode(encoded), object);
- [Distribution](#distribution)
- [NPM / npmjs.com](#npm--npmjscom)
- [CDN / unpkg.com](#cdn--unpkgcom)
- [Deno Support](#deno-support)
- [Maintenance](#maintenance)
- [Testing](#testing)
- [Continuous Integration](#continuous-integration)
Expand Down Expand Up @@ -561,6 +562,12 @@ This library is available via CDN:

It loads `MessagePack` module to the global object.


## Deno Support

You can use this module on Deno.

See `example/deno-*.ts` for examples.
## Maintenance

### Testing
Expand Down
5 changes: 5 additions & 0 deletions example/deno-with-esmsh.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env deno run
/* eslint-disable no-console */
import * as msgpack from "https://esm.sh/@msgpack/msgpack";

console.log(msgpack.decode(msgpack.encode("Hello, world!")));
5 changes: 5 additions & 0 deletions example/deno-with-unpkg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env deno run
/* eslint-disable no-console */
import * as msgpack from "https://unpkg.com/@msgpack/msgpack?module";

console.log(msgpack.decode(msgpack.encode("Hello, world!")));