Skip to content

Commit b0e4662

Browse files
authored
Merge pull request msgpack#233 from msgpack/deno-with-npm
Add an example for deno to import `npm:@msgpack/msgpack`
2 parents f95b15b + 5bcf575 commit b0e4662

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

example/deno-with-npm.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env deno run
2+
/* eslint-disable no-console */
3+
import * as msgpack from "npm:@msgpack/msgpack";
4+
5+
console.log(msgpack.decode(msgpack.encode("Hello, world!")));

0 commit comments

Comments
 (0)