Skip to content

Commit

Permalink
feat: export car multicodec code
Browse files Browse the repository at this point in the history
Export the multicodec code for CAR from _the_ car module to avoid this sort of thing: https://github.com/search?q=org:web3-storage+0x0202&type=code

License: MIT
Signed-off-by: Oli Evans <[email protected]>
  • Loading branch information
olizilla committed Jan 24, 2024
1 parent d53ca08 commit 91c08c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import { CarWriter } from './writer.js'
// @see https://www.iana.org/assignments/media-types/application/vnd.ipld.car
export const contentType = 'application/vnd.ipld.car'

// @see: https://github.com/multiformats/multicodec/blob/696e701b6cb61f54b67a33b002201450d021f312/table.csv#L140
export const code = 0x0202

export {
CarReader,
CarBufferReader,
Expand Down

0 comments on commit 91c08c3

Please sign in to comment.