cryptocoinjs / base-x

Encode/decode any base
MIT License
312 stars 75 forks source link

Node < 6 shim for Buffer.from #40

Closed ktonon closed 7 years ago

ktonon commented 7 years ago

See http://stackoverflow.com/questions/36899888/getting-typeerror-this-is-not-a-typed-array-using-buffer-from-in-mocha

I can't use the upgrade option, because I want to use this on AWS Lambda, and currently they only support up to 4.3. See http://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html

dcousens commented 7 years ago

Or, you can just use version 2.0.5, of which the only difference between 3.0.0 and 2.x.y is Buffer.from.

For a small while we might back port changes if they are worth while or fixes.

ktonon commented 7 years ago

Thanks. That works