base64-arraybuffer
base64-arraybuffer copied to clipboard
Encode/decode base64 data into ArrayBuffers
Essentially: - Use constants where possible - Declare variables and constants just before they are used to avoid mixing them
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1. Commits f545bdb 3.0.1 c57d4c2 fix a few old XO issues for backport 419250f Fix potential ReDoS (#37) See full diff in compare view [ from 1.0.1 to 1.0.3. Commits c3b28d3 1.0.3 6226c95 Merge pull request #4 from Trott/fix-it-again c77691d fix: remediate ReDOS further 76ca93c chore: pin mocha to version that works with...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
This is a common style of base64 which swaps out `+` and `/` for URL/filename-safe equivalents. Incidentally, should there be some checks for invalid characters in the decode function? I...
As it is, if you have some Uint8Array that is a view into a larger ArrayBuffer then a copy of the data is made in encode because `new Uint8Array(someOtherUint8Array)` makes...
b64 chars are between 43 & 122.
For repeated invocations with temporary data, there's an opportunity (not sure how great) for memory allocation savings if instead of always creating a new `ArrayBuffer`, the `decode` function allows an...
replacement for PR #7 by relying on ES defaults (also use parameter names from ES2017 spec)