sindresorhus / uint8array-extras

Useful utilities for working with Uint8Array (and Buffer)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replacement for `Buffer.from(..., 'ascii')`?

make-github-pseudonymous-again opened this issue · comments

Does stringToUint8Array (UTF-8) cover all cases or should there be an implementation dedicated to ASCII?

I added what I needed. I never had any need for ascii. If anyone does, they can include some use-cases and propose adding it.