{"versions":{"0.4.4":{"name":"bytesish","version":"0.4.4","main":"node.js","browser":"browser.js","scripts":{"test":"hundreds aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.4.1","hundreds":"0.0.2","tsame":"^2.0.1"},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"Cross-Platform Binary API","gitHead":"dcc5617656555e498319fa32f6f2cf7004c24a85","_id":"bytesish@0.4.4","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"shasum":"f3b535a0f1153747427aee27256748cff92347e6","size":4907,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.4.4.tgz","integrity":"sha512-i4uu6M4zuMUiyfZN4RU2+i9+peJh//pXhd9x1oSe1LBkZ3LEbCoygu8W0bXTukU1Jme2txKuotpCZRaC3FLxcQ=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.4.4_1602305405725_0.19879655896546966"},"_hasShrinkwrap":false,"publish_time":1602305405893,"_cnpm_publish_time":1602305405893,"_cnpmcore_publish_time":"2021-12-16T11:51:03.184Z","contributors":[]},"0.4.3":{"name":"bytesish","version":"0.4.3","main":"node.js","browser":"browser.js","scripts":{"test":"hundreds aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.4.1","hundreds":"0.0.2","tsame":"^2.0.1"},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"Cross-Platform Binary API","gitHead":"d14f4bb118330b1ba11fef46ef633752309122a9","_id":"bytesish@0.4.3","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"shasum":"886b4c5d0eb5d46678cbfaa2c5fc7d706527b00f","size":4905,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.4.3.tgz","integrity":"sha512-OuwahLpcvvYfFnxZL0E/Gx6D7U2A72JM8cXL+5uiiZP/x84B/arG5kL8QfRLCLKb/Ttp1Jk2bPDLeltP96dtbw=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.4.3_1597792693862_0.17842507223008086"},"_hasShrinkwrap":false,"publish_time":1597792693984,"_cnpm_publish_time":1597792693984,"_cnpmcore_publish_time":"2021-12-16T11:51:03.425Z","contributors":[]},"0.4.2":{"name":"bytesish","version":"0.4.2","main":"node.js","browser":"browser.js","scripts":{"test":"hundreds aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.4.1","hundreds":"0.0.2","tsame":"^2.0.1"},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"Cross-Platform Binary API","gitHead":"c5d14fa159b201f45398caf252b1c1398fc7d9c3","_id":"bytesish@0.4.2","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"shasum":"99c2e7c392dcd57b48e01650753aca2bc3ac9fb7","size":4888,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.4.2.tgz","integrity":"sha512-ym4cXhq28K7uhYZUEOl17LuqsqKSphDsZcfAKmEa/HcCsCqHMQXOiFuWx1OnbktJux/qKK1W9Xt9uU5kLIKypQ=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.4.2_1592340636760_0.8445868025793115"},"_hasShrinkwrap":false,"publish_time":1592340636858,"_cnpm_publish_time":1592340636858,"_cnpmcore_publish_time":"2021-12-16T11:51:03.632Z","contributors":[]},"0.4.1":{"name":"bytesish","version":"0.4.1","main":"node.js","browser":"browser.js","scripts":{"test":"hundreds aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","hundreds":"0.0.1","tsame":"^2.0.1"},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"Cross-Platform Binary API","gitHead":"ee9aec3e43126b26b042a77da0c712d44cf5afeb","_id":"bytesish@0.4.1","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"shasum":"5fe19b076037ffdfb63e083a53495b1d1c063f6f","size":4258,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.4.1.tgz","integrity":"sha512-j3l5QmnAbpOfcN/Z2Jcv4poQYfefs8rDdcbc6iEKm+OolvUXAE2APodpWj+DOzqX6Bl5Ys1cQkcIV2/doGvQxg=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.4.1_1566252319149_0.700321657589493"},"_hasShrinkwrap":false,"publish_time":1566252319281,"_cnpm_publish_time":1566252319281,"_cnpmcore_publish_time":"2021-12-16T11:51:03.858Z","contributors":[]},"0.4.0":{"name":"bytesish","version":"0.4.0","main":"node.js","browser":"browser.js","scripts":{"test":"hundreds aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","hundreds":"0.0.1","tsame":"^2.0.1"},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"Cross-Platform Binary API","gitHead":"c918189cae3d318f1492a0785bdf0f51fc80ee39","_id":"bytesish@0.4.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"shasum":"9b9e60a7183940d4d3405e6b1dcad9a95cdd48b4","size":4258,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.4.0.tgz","integrity":"sha512-CZ75630pbBbmBK1vGgcQX6e1GUTpEo/CfgUSvgU/3iOtOne9bKebyT74T31f0oYFRgI2O11RqzVvMVW+FqarsQ=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.4.0_1566248926891_0.4363306568719114"},"_hasShrinkwrap":false,"publish_time":1566248926982,"_cnpm_publish_time":1566248926982,"_cnpmcore_publish_time":"2021-12-16T11:51:04.089Z","contributors":[]},"0.3.3":{"name":"bytesish","version":"0.3.3","main":"node.js","browser":"browser.js","scripts":{"test":"hundreds aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","hundreds":"0.0.1","tsame":"^2.0.1"},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"Cross-Platform Binary API","gitHead":"990a10e18ea3e7bda4d8cb46badf7c6119c8eb2b","_id":"bytesish@0.3.3","_nodeVersion":"10.16.2","_npmVersion":"6.9.0","dist":{"shasum":"103399440705adba36e48b42b52a3ad6dfff09cb","size":4230,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.3.3.tgz","integrity":"sha512-Q5eMmjkF3PnHDA0k/34/aGodPWxYL/2bAB1j17JQXeejbGsWaJLpKJqLCcpe+e37Oqg+UZig0kF5vgslOOyUJQ=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.3.3_1565815056603_0.23840337736800676"},"_hasShrinkwrap":false,"publish_time":1565815056800,"_cnpm_publish_time":1565815056800,"_cnpmcore_publish_time":"2021-12-16T11:51:04.401Z","contributors":[]},"0.3.2":{"name":"bytesish","version":"0.3.2","main":"node.js","browser":"browser.js","scripts":{"test":"nyc --check-coverage --branches 100 --functions 100 --lines 100 aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","tsame":"^2.0.1"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"Cross-Platform Binary API","gitHead":"8704231016d7a986d72ba8b48a1b0332d47e458c","_id":"bytesish@0.3.2","_nodeVersion":"10.16.2","_npmVersion":"6.9.0","dist":{"shasum":"83105cfb75e153018896a9bcc9e3e215e5837218","size":4255,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.3.2.tgz","integrity":"sha512-vEuDNHQoF+9RYajlZ1IbGekXJqAnp83VXKGuUNhw/smJDCPs2gAIdI7D1fWedgerFdhE8tlia2bMX+s9vaQ+VQ=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.3.2_1565811028161_0.355629489592993"},"_hasShrinkwrap":false,"publish_time":1565811028248,"_cnpm_publish_time":1565811028248,"_cnpmcore_publish_time":"2021-12-16T11:51:04.957Z","contributors":[]},"0.3.1":{"name":"bytesish","version":"0.3.1","main":"node.js","browser":"browser.js","scripts":{"test":"nyc --check-coverage --branches 100 --functions 100 --lines 100 aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","tsame":"^2.0.1"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"Cross-Platform Binary API","gitHead":"2fc81c4f4c13d0f04e959b890ee7288d14128880","_id":"bytesish@0.3.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"621fecb368d9e9b5aa0a84661ae23d693e988d11","size":4215,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.3.1.tgz","integrity":"sha512-fSgsJzfBx12cfN+I2dNaXQYVChS1P6fy0QLKHhoyKdNWsL5nYVV9euVHMtt/dbCTJM/9jNGpIqbyD56oHepobA=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.3.1_1563419319179_0.5676756423780993"},"_hasShrinkwrap":false,"publish_time":1563419319637,"_cnpm_publish_time":1563419319637,"_cnpmcore_publish_time":"2021-12-16T11:51:05.210Z","contributors":[]},"0.3.0":{"name":"bytesish","version":"0.3.0","main":"node.js","browser":"browser.js","scripts":{"test":"nyc --check-coverage --branches 100 --functions 100 --lines 100 aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","tsame":"^2.0.1"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"Cross-Platform Binary API","gitHead":"c2b486ff0a1f72cc76880c10b10bfefcbce94555","_id":"bytesish@0.3.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"5750e109b8515148e47ab726cb3c6f0515ff7506","size":4045,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.3.0.tgz","integrity":"sha512-9D3fiDLNin/ojDZg8XLrgD0zIqES7K1O5bCS/UI8GWhh14HNJFWzBUwlezBAwoPd4L/zZoYPDS20RI5mslii1w=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.3.0_1563405471068_0.028723192033709433"},"_hasShrinkwrap":false,"publish_time":1563405471183,"_cnpm_publish_time":1563405471183,"_cnpmcore_publish_time":"2021-12-16T11:51:05.431Z","contributors":[]},"0.2.3":{"name":"bytesish","version":"0.2.3","main":"node.js","browser":"browser.js","scripts":{"test":"nyc --check-coverage --branches 100 --functions 100 --lines 100 aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","tsame":"^2.0.1"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"Cross-Platform Binary API","gitHead":"83170d9c2b965f35eeefcb2c8973b5c847fe56be","_id":"bytesish@0.2.3","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"0a049923f463e0cbab5492e6c21ca9304c4c2831","size":3669,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.2.3.tgz","integrity":"sha512-E6pgQfYibYUkOCuU/QBWrDQitliEA7zXMLltuQgNkI4yLagz9t1j7M5JlKQl18tIvyf62XnoBVmIopoV/qvkLA=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.2.3_1563399259865_0.8461959343409107"},"_hasShrinkwrap":false,"publish_time":1563399259991,"_cnpm_publish_time":1563399259991,"_cnpmcore_publish_time":"2021-12-16T11:51:05.626Z","contributors":[]},"0.2.2":{"name":"bytesish","version":"0.2.2","main":"node.js","browser":"browser.js","scripts":{"test":"nyc --check-coverage --branches 100 --functions 100 --lines 100 aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","tsame":"^2.0.1"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"If you're writing a library that needs to work in Node.js and in Browsers, it's quite difficult to figure out what \"the right thing\" to do with binary is.","gitHead":"acd6aa28bae5b6c4e0297bcf27b384a1a48836ec","_id":"bytesish@0.2.2","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"17e02658925648aa648e610550356297687da406","size":3652,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.2.2.tgz","integrity":"sha512-OfBzxxeD3P0nOgZ8y1TQduC7NXwA4dLW0qJGeMonCtU8e5Grukj9WlZZpsnhxFxbBsHmBPytriqCi+YQWlXgww=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.2.2_1563398536757_0.9026709028732895"},"_hasShrinkwrap":false,"publish_time":1563398536855,"_cnpm_publish_time":1563398536855,"_cnpmcore_publish_time":"2021-12-16T11:51:06.123Z","contributors":[]},"0.2.1":{"name":"bytesish","version":"0.2.1","main":"node.js","browser":"browser.js","scripts":{"test":"nyc --check-coverage --branches 100 --functions 100 --lines 100 aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","tsame":"^2.0.1"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"If you're writing a library that needs to work in Node.js and in Browsers, it's quite difficult to figure out what \"the right thing\" to do with binary is.","gitHead":"dfc51932f99d223ddec79385fa89b02cd4603dfc","_id":"bytesish@0.2.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"a80513f0a48e578f72e2eac78273aa373d5079c1","size":3634,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.2.1.tgz","integrity":"sha512-GkwJnzBY+5DE3JjYkr8vX60cfERofAIBPj/1Bh5RH2Z28AC7NWLMXqZWZX+/YE/HMexBzHPkrFSFjKd4g+Wdmw=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.2.1_1563398407625_0.9463523758769286"},"_hasShrinkwrap":false,"publish_time":1563398407772,"_cnpm_publish_time":1563398407772,"_cnpmcore_publish_time":"2021-12-16T11:51:06.324Z","contributors":[]},"0.2.0":{"name":"bytesish","version":"0.2.0","main":"node.js","browser":"browser.js","scripts":{"test":"nyc --check-coverage --branches 100 --functions 100 --lines 100 aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","tsame":"^2.0.1"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"If you're writing a library that needs to work in Node.js and in Browsers, it's quite difficult to figure out what \"the right thing\" to do with binary is.","gitHead":"d442f6ff4c8002db9d434b93c0cea2858bdc8de5","_id":"bytesish@0.2.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"207099cd14554c6f158fc67e5228bb39d332bb14","size":3537,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.2.0.tgz","integrity":"sha512-VSt4qU+ifwB231MWB3DduyEfHu8CfkFs23ZJe3hzRGm3nsKJbJofV+g2c62edDrF8xLYEW3rpSoxnFtlIfvzfw=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.2.0_1563384025206_0.9987735269665761"},"_hasShrinkwrap":false,"publish_time":1563384025376,"_cnpm_publish_time":1563384025376,"_cnpmcore_publish_time":"2021-12-16T11:51:06.560Z","contributors":[]},"0.1.0":{"name":"bytesish","version":"0.1.0","main":"node.js","browser":"browser.js","scripts":{"test":"nyc --check-coverage --branches 100 --functions 100 --lines 100 aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","tsame":"^2.0.1"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"If you're writing a library that needs to work in Node.js and in Browsers, it's quite difficult to figure out what \"the right thing\" to do with binary is.","gitHead":"75748d8d6d416d524d7018d5c534286856e25330","_id":"bytesish@0.1.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"b89edf77fe314181319d554fd1556792af2879d0","size":3179,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.1.0.tgz","integrity":"sha512-vJEkSVPzYZt751PLUG/v4sxbcELifK9EpPbLCgOcaqC7KWhcv9VRjoJWjYxgoZYF1QzMs8mEQdj8ItKdABjxGg=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.1.0_1563336092701_0.8410856585767534"},"_hasShrinkwrap":false,"publish_time":1563336092904,"_cnpm_publish_time":1563336092904,"_cnpmcore_publish_time":"2021-12-16T11:51:06.731Z","contributors":[]},"0.0.1":{"name":"bytesish","version":"0.0.1","main":"node.js","browser":"browser.js","scripts":{"test":"aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","tsame":"^2.0.1"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"If you're writing a library that needs to work in Node.js and in Browsers, it's quite difficult to figure out what \"the right thing\" to do with binary is.","gitHead":"c1613d7e227feb2078fee3d4857703937b3bfd9e","_id":"bytesish@0.0.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"7390d6f6848553966f5526d85e285ceb1e79bfe8","size":2977,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.0.1.tgz","integrity":"sha512-oyTeZPw4UmTm4J0EXE8NSybF4wYEWpKs3WJEt7E7zWoCAnVGg58m7cXh8QWm8QN9dSNCVEBvtYQ0XAOeK7fqNw=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.0.1_1563251481425_0.4170523896669407"},"_hasShrinkwrap":false,"publish_time":1563251481514,"_cnpm_publish_time":1563251481514,"_cnpmcore_publish_time":"2021-12-16T11:51:06.935Z","contributors":[]},"0.0.0":{"name":"bytesish","version":"0.0.0","main":"node.js","browser":"browser.js","scripts":{"test":"aegir test -t node browser","pretest":"aegir lint"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"https://www.mikealrogers.com/"},"license":"(Apache-2.0 AND MIT)","devDependencies":{"aegir":"^20.0.0","tsame":"^2.0.1"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/mikeal/bytesish.git"},"bugs":{"url":"https://github.com/mikeal/bytesish/issues"},"homepage":"https://github.com/mikeal/bytesish#readme","description":"If you're writing a library that needs to work in Node.js and in Browsers, it's quite difficult to figure out what \"the right thing\" to do with binary is.","gitHead":"9ba1437df0e248fd0abc137e50eae0448450adba","_id":"bytesish@0.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"e44a4445f893b76c681bf2c4bb62e466bf70b1ad","size":2975,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/bytesish/-/bytesish-0.0.0.tgz","integrity":"sha512-xn+GuskxGk/nti8+5bWFuWFKSmbdMO/xyMVlIkUwBfYKZ2OtQ/Ze2aVOFY/UW7Tw1YoKt7fzWkmM2vvO4wbzYQ=="},"maintainers":[{"name":"anonymous","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bytesish_0.0.0_1563251103763_0.350634910790258"},"_hasShrinkwrap":false,"publish_time":1563251103860,"_cnpm_publish_time":1563251103860,"_cnpmcore_publish_time":"2021-12-16T11:51:07.179Z","contributors":[]}},"dist-tags":{"latest":"0.4.4"},"name":"bytesish","time":{"created":"2022-01-26T16:18:09.194Z","modified":"2023-12-30T04:49:44.962Z","0.4.4":"2020-10-10T04:50:05.893Z","0.4.3":"2020-08-18T23:18:13.984Z","0.4.2":"2020-06-16T20:50:36.858Z","0.4.1":"2019-08-19T22:05:19.281Z","0.4.0":"2019-08-19T21:08:46.982Z","0.3.3":"2019-08-14T20:37:36.800Z","0.3.2":"2019-08-14T19:30:28.248Z","0.3.1":"2019-07-18T03:08:39.637Z","0.3.0":"2019-07-17T23:17:51.183Z","0.2.3":"2019-07-17T21:34:19.991Z","0.2.2":"2019-07-17T21:22:16.855Z","0.2.1":"2019-07-17T21:20:07.772Z","0.2.0":"2019-07-17T17:20:25.376Z","0.1.0":"2019-07-17T04:01:32.904Z","0.0.1":"2019-07-16T04:31:21.514Z","0.0.0":"2019-07-16T04:25:03.860Z"},"readme":"# `bytesish`\n\n![5002](https://img.shields.io/badge/compiled%20bundle-5k-green) ![1903](https://img.shields.io/badge/gzipped%20bundle-2k-brightgreen)\n\nIf you're writing a library that needs to work in Node.js and in Browsers,\nit's quite difficult to figure out what \"the right thing\" to do with binary\nis.\n\nIf you want to be compatible with Node.js libraries you'll need to accept\nand return `Buffer` instances. If you want to be compatible with Browser API's\nyou'll need to accept and return a number of types, the browser is sort of a mess\nwhen it comes to binary with many different \"views\" of binary data.\n\nThe moment you use the Node.js `Buffer` API in a library that is bundled for\nuse in Browsers the bundler will inject a rather large polyfill for the entire\n`Buffer` API. It's quite difficult to accept and return `Buffer` instances while\navoiding this penalty.\n\nHowever, there is some good news. No matter what the binary type there's an underlying\n`ArrayBuffer` associated with the instance. There's also one generic binary view object\navailable in both Node.js and Browsers called `DataView`. This means that you can take\nany binary type and do a **zero memcopy** conversion to a `DataView`.\n\nBut there are some problems with `DataView`. Not all APIs take it in browsers and almost\nnone accept it in Node.js. It's a great API for reading and writing to an `ArrayBuffer`\nbut it lacks a lot of other functionality that can be difficult to accomplish cross-platform.\n\n`bytesish` is here to help. This library helps you accept and convert different binary types\ninto a consistent type, `DataView`, without loading any polyfills or other dependencies, then\nconvert back into an ideal type for the platform your library is running in.\n\nWhat `bytesish` does:\n\n* Returns a `DataView` from any known binary type (zero copy).\n* Creates a `DataView` from a string with any encoding.\n* Converts any type to a string of any encoding.\n* Converts any to an ideal native object (`Buffer` or `Uint8Array`).\n* Provides utility functions for comparison, sorting, copying and slices\nany binary type or string.\n\n`bytesish` does not create a new Binary Type for accessing and manipulating\nbinary data, because you can just use `DataView` for that. `bytesish` tries to be a\nsmall piece of code that does not contribute any more than necessary to your bundle size.\nIt does this by containing only the binary operations you need that are difficult to\ndo cross-platform (Node.js and Browsers).\n\n```javascript\nlet bytes = require('bytesish')\nlet view = bytes('hello world')\n\n/* zero copy conversions */\nview = bytes(Buffer.from('hello world')) // Buffer instance\nview = bytes((new TextEncoder()).encode('hello world')) // Uint8Array\n\n/* base64 conversions */\nlet base64String = bytes.toString(view, 'base64')\nbase64String = bytes.toString(Buffer.from('hello world'), 'base64')\nbase64String = bytes.toString('hello world', 'base64')\n\n/* since this is a string conversion it will create a new binary instance */\nlet viewCopy = bytes(base64String, 'base64')\n```\n\n# API\n\n## Zero Copy\n\n### `bytes(from)`\n\n### `bytes.sort(a, b)`\n\n### `bytes.compare(a, b)`\n\n### `bytes.native(from[, encoding])`\n\n### `bytes.slice(from[, start=0[, end=from.byteLength]])`\n\n### `bytes.typedArray(from[, Class=Uint8Array])`\n\n## Optimized (memcopy only when necessary)\n\n### `bytes.arrayBuffer(from[, encoding])` \n\n## Memory Copy\n\nAll memcopy APIs return an `ArrayBuffer`\n\n### `bytes.memcopy(from[, encoding])`\n\nReturns an `ArrayBuffer` copy of the given binary or string.\n\n### `bytes.memcopySlice(from[, start=0[, end=from.byteLength]])`\n\nReturns an `ArrayBuffer` copy from a slize of the given binary or string.\n\n### `bytes.concat(values)`\n\n`values` is an iterable of binary or string types.\n\nReturns a newly allocated `ArrayBuffer` contained the concatenated binary data.\n\n## String Conversions\n\n### `bytes(from[, encoding])`\n\n### `bytes.toString(from[, outputEncoding])`","users":{}}