Skip to content

Commit

Permalink
Clean up and doc updates, #25
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed May 14, 2021
1 parent 8af8983 commit e98d94b
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 114 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ receivingStream.on('data', (data) => {
```
The `PackrStream` and `UnpackrStream` instances will have also the record structure extension enabled by default (see below).

## Deno Usage
Msgpackr modules are standard ESM modules and can be loaded directly from github (https://raw.githubusercontent.com/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.

## Browser Usage
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:
```html
Expand Down
17 changes: 0 additions & 17 deletions browser.js

This file was deleted.

21 changes: 0 additions & 21 deletions browser.mjs

This file was deleted.

43 changes: 0 additions & 43 deletions index.mjs

This file was deleted.

2 changes: 0 additions & 2 deletions pack.mjs

This file was deleted.

16 changes: 6 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,32 @@
},
"type": "module",
"main": "./dist/node.cjs",
"browser": {
"./index.mjs": "./browser.mjs",
"./index.js": "./browser.js"
},
"exports": {
".": {
"node": {
"require": "./dist/node.cjs",
"import": "./node.js"
},
"default": {
"import": "./browser.js"
"import": "./index.js"
}
},
"./pack": {
"node": {
"import": "./index.js"
"import": "./index.js",
"require": "./dist/node.cjs"
},
"default": {
"import": "./pack.js"
}
},
"./unpack": {
"node": {
"import": "./index.mjs",
"require": "./index.js"
"import": "./index.js",
"require": "./dist/node.cjs"
},
"default": {
"import": "./unpack.mjs",
"require": "./unpack.js"
"import": "./unpack.js"
}
}
},
Expand Down
2 changes: 0 additions & 2 deletions unpack.mjs

This file was deleted.

19 changes: 0 additions & 19 deletions webpack.config.js

This file was deleted.

0 comments on commit e98d94b

Please sign in to comment.