Skip to content

Commit

Permalink
feat: reduce bundle size by 1/3 (#49)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
  • Loading branch information
mikeal authored and hacdias committed Dec 5, 2019
1 parent 2ed95e2 commit 2422b09
Show file tree
Hide file tree
Showing 12 changed files with 500 additions and 1,465 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Updating the lookup table is done with a script. The source of truth is the
[multicodec default table](https://github.com/multiformats/multicodec/blob/master/table.csv).
Update the table with running:

curl -X GET https://raw.githubusercontent.com/multiformats/multicodec/master/table.csv | ./tools/update-table.py
node ./tools/update-table.js

## Contribute

Expand Down
1 change: 1 addition & 0 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ const multicodec = require('multicodec')

const prefixedProtobuf = multicodec.addPrefix('protobuf', Buffer.from('some protobuf code'))

// eslint-disable-next-line no-console
console.log(prefixedProtobuf)
// => prefixedProtobuf 0x50...
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@
"varint": "^5.0.0"
},
"devDependencies": {
"aegir": "^18.2.2",
"aegir": "^20.2.0",
"bent": "^7.0.1",
"chai": "^4.2.0",
"pre-push": "~0.1.1",
"dirty-chai": "^2.0.1"
"dirty-chai": "^2.0.1",
"pre-push": "~0.1.1"
},
"contributors": [
"David Dias <daviddias.p@gmail.com>",
Expand Down
446 changes: 0 additions & 446 deletions src/base-table.js

This file was deleted.

Loading

0 comments on commit 2422b09

Please sign in to comment.