Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add method to convert codec names to numbers and back #44

Merged
merged 1 commit into from
May 11, 2019

Commits on May 10, 2019

  1. feat: add method to convert codec names to numbers and back

    Since ipld/js-ipld@108aef0
    codec names have started being passed around by `js-ipld` as numbers
    instead of strings.
    
    From a DX perspective it's still quite nice to use human-readable strings
    instead of numbers but at some point you have to convert between them so
    this PR adds methods to get a codec name based on a number and a number
    based on a name.
    achingbrain committed May 10, 2019
    Configuration menu
    Copy the full SHA
    a18bce9 View commit details
    Browse the repository at this point in the history