├── .gitattributes ├── .github └── workflows │ └── test.yml ├── .gitignore ├── .prettierrc ├── LICENSE ├── NOTICE ├── README.md ├── bench ├── compare.js ├── concat.js ├── copy.js ├── encoding │ ├── ascii │ │ ├── byte-length.js │ │ ├── to-string.js │ │ └── write.js │ ├── base64 │ │ ├── byte-length.js │ │ ├── to-string.js │ │ └── write.js │ ├── hex │ │ ├── byte-length.js │ │ ├── to-string.js │ │ └── write.js │ └── utf8 │ │ ├── byte-length.js │ │ ├── to-string.js │ │ └── write.js └── equals.js ├── browser.js ├── index.js ├── lib ├── ascii.js ├── base64.js ├── hex.js ├── utf16le.js └── utf8.js ├── package.json ├── react-native.js ├── test.mjs └── test ├── browser.mjs └── node.mjs /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | coverage/ 3 | package-lock.json 4 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | "prettier-config-holepunch" 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/LICENSE -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/NOTICE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/README.md -------------------------------------------------------------------------------- /bench/compare.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/compare.js -------------------------------------------------------------------------------- /bench/concat.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/concat.js -------------------------------------------------------------------------------- /bench/copy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/copy.js -------------------------------------------------------------------------------- /bench/encoding/ascii/byte-length.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/ascii/byte-length.js -------------------------------------------------------------------------------- /bench/encoding/ascii/to-string.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/ascii/to-string.js -------------------------------------------------------------------------------- /bench/encoding/ascii/write.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/ascii/write.js -------------------------------------------------------------------------------- /bench/encoding/base64/byte-length.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/base64/byte-length.js -------------------------------------------------------------------------------- /bench/encoding/base64/to-string.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/base64/to-string.js -------------------------------------------------------------------------------- /bench/encoding/base64/write.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/base64/write.js -------------------------------------------------------------------------------- /bench/encoding/hex/byte-length.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/hex/byte-length.js -------------------------------------------------------------------------------- /bench/encoding/hex/to-string.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/hex/to-string.js -------------------------------------------------------------------------------- /bench/encoding/hex/write.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/hex/write.js -------------------------------------------------------------------------------- /bench/encoding/utf8/byte-length.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/utf8/byte-length.js -------------------------------------------------------------------------------- /bench/encoding/utf8/to-string.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/utf8/to-string.js -------------------------------------------------------------------------------- /bench/encoding/utf8/write.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/encoding/utf8/write.js -------------------------------------------------------------------------------- /bench/equals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/bench/equals.js -------------------------------------------------------------------------------- /browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/browser.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/index.js -------------------------------------------------------------------------------- /lib/ascii.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/lib/ascii.js -------------------------------------------------------------------------------- /lib/base64.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/lib/base64.js -------------------------------------------------------------------------------- /lib/hex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/lib/hex.js -------------------------------------------------------------------------------- /lib/utf16le.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/lib/utf16le.js -------------------------------------------------------------------------------- /lib/utf8.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/lib/utf8.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/package.json -------------------------------------------------------------------------------- /react-native.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/react-native.js -------------------------------------------------------------------------------- /test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/test.mjs -------------------------------------------------------------------------------- /test/browser.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/test/browser.mjs -------------------------------------------------------------------------------- /test/node.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holepunchto/b4a/HEAD/test/node.mjs --------------------------------------------------------------------------------