cosmjs-util/packages/encoding
dependabot[bot] 3b84edb800
Bump webpack from 5.37.1 to 5.76.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.37.1 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.37.1...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-14 16:01:33 +00:00
..
src Remove Bech32 class 2023-03-07 15:21:09 +01:00
.eslintignore Add @cosmjs/encoding and @cosmjs/math 2020-06-09 17:46:03 +02:00
.eslintrc.js Adjust eslint config to make it work again 2023-03-01 15:32:06 +01:00
.gitignore Add @cosmjs/encoding and @cosmjs/math 2020-06-09 17:46:03 +02:00
.nycrc.yml Setup code coverage for utils/encoding/crypto 2020-06-25 12:32:12 +02:00
jasmine-testrunner.js Remove executable flag from jasmine testrunners 2021-06-01 10:50:02 +02:00
karma.conf.js Fix lint 2021-05-19 15:40:06 +02:00
package.json Bump webpack from 5.37.1 to 5.76.0 2023-03-14 16:01:33 +00:00
README.md Create toBech32 and fromBech32 in @cosmjs/encoding (#1058) 2022-02-22 14:05:34 +01:00
tsconfig.eslint.json Sort out eslint 2021-05-18 15:16:03 +02:00
tsconfig.json Remove declarationDir from tsconfigs 2021-02-09 14:38:36 +00:00
typedoc.js Upgrade typedoc to 0.20 2021-03-11 15:38:48 +01:00
webpack.web.config.js Fix webpack resolution 2021-05-20 13:37:43 +02:00

@cosmjs/encoding

npm version

This package is an extension to the JavaScript standard library that is not bound to blockchain products. It provides basic hex/base64/ascii encoding to Uint8Array that doesn't rely on Buffer and also provides better error messages on invalid input.

Convert between bech32 and hex addresses

>> toBech32("tiov", fromHex("1234ABCD0000AA0000FFFF0000AA00001234ABCD"))
'tiov1zg62hngqqz4qqq8lluqqp2sqqqfrf27dzrrmea'
>> toHex(fromBech32("tiov1zg62hngqqz4qqq8lluqqp2sqqqfrf27dzrrmea").data)
'1234abcd0000aa0000ffff0000aa00001234abcd'

License

This package is part of the cosmjs repository, licensed under the Apache License 2.0 (see NOTICE and LICENSE).