Title: add deno example with `import 'npm:@msgpack/msgpack'` · Issue #232 · msgpack/msgpack-javascript · GitHub
Open Graph Title: add deno example with `import 'npm:@msgpack/msgpack'` · Issue #232 · msgpack/msgpack-javascript
X Title: add deno example with `import 'npm:@msgpack/msgpack'` · Issue #232 · msgpack/msgpack-javascript
Description: This works for me in Deno: import * as msgpack from 'npm:@msgpack/msgpack' msgpack.decode(msgpack.encode(['MessagePack', 'rocks!'])) This is my preferred way to use it with Deno. I am wondering if it could be considered the standard way ...
Open Graph Description: This works for me in Deno: import * as msgpack from 'npm:@msgpack/msgpack' msgpack.decode(msgpack.encode(['MessagePack', 'rocks!'])) This is my preferred way to use it with Deno. I am wondering if ...
X Description: This works for me in Deno: import * as msgpack from 'npm:@msgpack/msgpack' msgpack.decode(msgpack.encode(['MessagePack', 'rocks!'])) This is my preferred way to use it with ...
Opengraph URL: https://github.com/msgpack/msgpack-javascript/issues/232
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add deno example with `import 'npm:@msgpack/msgpack'`","articleBody":"This works for me in Deno:\r\n\r\n```js\r\nimport * as msgpack from 'npm:@msgpack/msgpack'\r\nmsgpack.decode(msgpack.encode(['MessagePack', 'rocks!']))\r\n```\r\n\r\nThis is my preferred way to use it with Deno. I am wondering if it could be considered the standard way of using `@msgpack/msgpack` from Deno. If so, perhaps this could be given an example with just `deno.js` and the other ones could have longer names. Also the only thing that changes in the other examples is the URL. Perhaps it could just be comments in `deno.js`:\r\n\r\n```js\r\n#!/usr/bin/env deno run\r\n/* eslint-disable no-console */\r\nimport * as msgpack from 'npm:@msgpack/msgpack';\r\n\r\n// from UNPKG\r\n//import * as msgpack from \"https://unpkg.com/@msgpack/msgpack/mod.ts\";\r\n\r\n// from esm.sh\r\n//import * as msgpack from \"https://esm.sh/@msgpack/msgpack/mod.ts\";\r\n\r\n// from jsDelivr\r\n//import * as msgpack from \"https://cdn.jsdelivr.net/npm/@msgpack/msgpack/mod.ts\";\r\n\r\nconsole.log(msgpack.decode(msgpack.encode(\"Hello, world!\")));\r\n```","author":{"url":"https://github.com/benatkin","@type":"Person","name":"benatkin"},"datePublished":"2023-08-08T02:22:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/232/msgpack-javascript/issues/232"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e07fa175-7c28-d2af-0087-679e962c1456 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A75E:333E4B:10BD176:16632F2:6A542303 |
| html-safe-nonce | cf36b234ed3817581392f672fabf2c46161e614b19bc1ee435e2b319ff064e9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzVFOjMzM0U0QjoxMEJEMTc2OjE2NjMyRjI6NkE1NDIzMDMiLCJ2aXNpdG9yX2lkIjoiMjQyNDUyNzE5MDkwNzY5MTc3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 51394d341af15c41a260bfce034031f85b8428511f66f5d78fb791a2c16c0967 |
| hovercard-subject-tag | issue:1840452707 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/msgpack/msgpack-javascript/232/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee062369b9222da22d3ac742af1f15cfbf41560aec3d8fce1fc6bded88fa5dc7/msgpack/msgpack-javascript/issues/232 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee062369b9222da22d3ac742af1f15cfbf41560aec3d8fce1fc6bded88fa5dc7/msgpack/msgpack-javascript/issues/232 |
| og:image:alt | This works for me in Deno: import * as msgpack from 'npm:@msgpack/msgpack' msgpack.decode(msgpack.encode(['MessagePack', 'rocks!'])) This is my preferred way to use it with Deno. I am wondering if ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | benatkin |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/msgpack/msgpack-javascript git https://github.com/msgpack/msgpack-javascript.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 2761854 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2761854 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width