base-x icon indicating copy to clipboard operation
base-x copied to clipboard

Encode/decode any base

Results 8 base-x issues
Sort by recently updated
recently updated
newest added

Webpack 5 does not polyfill Node.js standard libraries anymore. Using [buffer](https://www.npmjs.com/package/buffer) instead of safe-buffer should ensure that developers using Webpack 5 can use your library without having to polyfill the...

Just change (source[psz]) to (psz < source.length) in line 82.

This is slightly reduced in scope version of #68 which is not a breaking change for libraries downstream. Before ``` Seed: 1e15efc4cbae18af002c915c6f93bb65 -------------------------------------------------- encode x 164,655 ops/sec ±27.37% (8 runs...

Hi! It would be great if this lib could expose async api, because sometimes it can block js significantly.

The latest release to 3.0.5 introduced es6 syntax which makes using base-x difficult as a dependency. This has been the case with me and I'm sure with other developers that...

See: https://github.com/cryptocoinjs/base-x/blob/master/index.js#L81 Suggest something like: `The character ${char} is not found in base${base} alphabet: ${alphabet}` May get around to a pull request myself at some point

feature

It'd be awesome to be able to pass this to https://github.com/dominictarr/varstruct

feature
question / help / docs

This yields a performance improvement over indexing into `source` over and over. `source` is asserted to be a string, `psz` is monotonically increasing, and `psz >= source.length` is a good...