{"_id":"chai-bites","_rev":"5-82120c5ca1c8b30446c2b53ec500f671","name":"chai-bites","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.2":{"name":"chai-bites","version":"0.1.2","keywords":["chai","chai-plugin","assertions","testing","buffers","uint8array"],"author":{"name":"Alex Ostrovski","email":"ostrovski.alex@gmail.com"},"license":"Apache-2.0","_id":"chai-bites@0.1.2","maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"homepage":"https://github.com/achingbrain/chai-bites#readme","bugs":{"url":"https://github.com/achingbrain/chai-bites/issues"},"dist":{"shasum":"6e267143689ee4bae617a400863348e533b6bf10","tarball":"https://registry.npmjs.org/chai-bites/-/chai-bites-0.1.2.tgz","fileCount":5,"integrity":"sha512-eZVKGTywFkRuMle/UkiT9OXU4y4WeNy0yKe2t5iclIW3Yn9X3l7iWZoSeTjTpeQ1SIMn3In0rctjVCaRuKCmng==","signatures":[{"sig":"MEYCIQDStzM20yyJO05Wp34xTeHlXAj3M9NmYuwv9OMV1fkqbQIhAPGXUSMdkDyyHU46tCMAM3TUr6Ezf9qAkOOH9Fd4Ip4I","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17875,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJht6eICRA9TVsSAnZWagAAZkQP/jpvk/b74hnGjTHGpJBO\ntN2Db7NkdvmWf992VHB4gzS132xQrAJyTkmGAMnCQ76hlzBSsb9g/mdygjCF\n7mwxJmF+CcAU7q2pGgIlC/lY8NxlTQV/6cxBqYj0cY44/1ZxUTRNt4Mcv8hL\n9TsW3fbBQGlnowkkRZDMZON2EpXtd43yw51uhOo5mz+GQtx3uAaeYEZGMevQ\nejyio/uoVj9uBMNsNAZONGQ3joqHcxDpU7eIwCqWCnIM3j99u/ofcv0vCL0i\nOZpZ1xqNAy5JNZ9uPjNgmnh+xTqYs+gqUJnvUxgZDj/PfwaQHbibJvV1DTci\nJ+jdI5hM1Nwjl9atqhjqESug6StVHUu12Goq8apAgyY9RXtwUaGR4DKgrN9a\nssOo42WonvD+Dc6rnaqpaffCHfXfX0WleR5MznV/O8YPgXphdKHbBhCmS6JB\nGlGwMZpjKqbvMYQ1phVbYnJnljTRBPFnnc/62VX66Kr2+wmIaJSYSx8nMV8S\nD9AqWw11AD+vFu8I/2jWZ+oo2SBj5eh48SX0Zy2P8BxP2L3a6J4FGWeqhbHR\n8UVOBnj6q7OlDdPAPVPZ6ZG/yW6hRPuRstjLM/xP7s5/9NJREDU10KAEIGat\ngwgt9VrzK2NR8SQJM6DHJ2TTfrgkZ2sgmdL0Lht4rkTAiWj7o92swgHDf43K\nTUIW\r\n=YdXf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","engines":{"node":">=10"},"gitHead":"ecf6572986d55de4357804622d615aa947f8e500","scripts":{"lint":"semistandard","test":"mocha test --exclude test/types.js","test-ts":"tsc -p test && node test/types.js","test-browser":"karma start"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"repository":{"url":"git+https://github.com/achingbrain/chai-bites.git","type":"git"},"_npmVersion":"8.1.0","description":"Chai assertions for byte arrays equality","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","karma":"^6.3.4","mocha":"^9.0.3","babelify":"^10.0.0","coveralls":"^3.1.1","browserify":"^17.0.0","typescript":"^4.3.5","@babel/core":"^7.15.0","@types/chai":"^4.2.21","karma-mocha":"^2.0.1","semistandard":"^16.0.1","karma-coverage":"^2.0.3","karma-browserify":"^8.1.0","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^6.0.0","karma-firefox-launcher":"^2.1.1"},"peerDependencies":{"chai":">=2 <5"},"_npmOperationalInternal":{"tmp":"tmp/chai-bites_0.1.2_1639425928347_0.4637807366155302","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"chai-bites","version":"0.2.0","keywords":["chai","chai-plugin","assertions","testing","buffers","uint8array"],"author":{"name":"Alex Ostrovski","email":"ostrovski.alex@gmail.com"},"license":"Apache-2.0","_id":"chai-bites@0.2.0","maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"homepage":"https://github.com/achingbrain/chai-bites#readme","bugs":{"url":"https://github.com/achingbrain/chai-bites/issues"},"dist":{"shasum":"7aaace465c0db16b981de7e6a6de3d0213ef45cd","tarball":"https://registry.npmjs.org/chai-bites/-/chai-bites-0.2.0.tgz","fileCount":5,"integrity":"sha512-cX+z+/u+MporetHrWHuEwhmKuDqhZ0KXQJbN4uYWVLa1xzjfyfvpQcCxSUdHA7xv6B0VU30dR/+7aVfZr2outw==","signatures":[{"sig":"MEUCIEYWeRsr8NxS6c3qaQsKviaPOx3zdYL7amCkM3VEe5UYAiEAsQ2MvGpBtUe7E4txQVnf1VptFbVi1MUWYXW2qENwEN8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17846},"main":"index.js","type":"module","types":"index.d.ts","engines":{"node":">=10"},"gitHead":"38aafe8107b211f5958a4534e90679169a2e551a","scripts":{"lint":"semistandard","test":"mocha test --exclude test/types.js","test-ts":"tsc -p test && node test/types.js","test-browser":"karma start"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"repository":{"url":"git+https://github.com/achingbrain/chai-bites.git","type":"git"},"_npmVersion":"10.2.4","description":"Chai assertions for byte arrays equality","directories":{},"_nodeVersion":"20.11.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.0","karma":"^6.3.4","mocha":"^10.4.0","babelify":"^10.0.0","coveralls":"^3.1.1","browserify":"^17.0.0","typescript":"^5.4.5","@babel/core":"^7.15.0","@types/chai":"^4.2.21","karma-mocha":"^2.0.1","semistandard":"^17.0.0","karma-coverage":"^2.0.3","karma-browserify":"^8.1.0","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^6.0.0","karma-firefox-launcher":"^2.1.1"},"_npmOperationalInternal":{"tmp":"tmp/chai-bites_0.2.0_1714563553591_0.6293057165270362","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"chai-bites","version":"0.3.0","keywords":["chai","chai-plugin","assertions","testing","buffers","uint8array"],"author":{"name":"Alex Ostrovski","email":"ostrovski.alex@gmail.com"},"license":"Apache-2.0","_id":"chai-bites@0.3.0","maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"homepage":"https://github.com/achingbrain/chai-bites#readme","bugs":{"url":"https://github.com/achingbrain/chai-bites/issues"},"dist":{"shasum":"51aa3f6ea5e827fb59cf493bb730b33ef4ebed9a","tarball":"https://registry.npmjs.org/chai-bites/-/chai-bites-0.3.0.tgz","fileCount":5,"integrity":"sha512-NV5HnBUWQDiEN5F1jXAG7CO6bfHW304+wY7cPhmWgW+SidIDEzLbHpw6lxwHBzemIIAR39Dm7ZhfmBxOujkbDQ==","signatures":[{"sig":"MEQCICZZl6gtJz3vGx+E4/VYqJEcHRcIvCM9FHmYx/qs+VyjAiAe0WNCrVWCTJAbj1lbrbNfc8FBLu5xtAWOr4XCd0Fghg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17895},"main":"index.js","type":"module","types":"index.d.ts","engines":{"node":">=10"},"gitHead":"8b450d77a45ba82553995c93945fa2932250a749","scripts":{"lint":"semistandard","test":"mocha test --exclude test/types.js","test-ts":"tsc -p test && node test/types.js","test-browser":"karma start"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"repository":{"url":"git+https://github.com/achingbrain/chai-bites.git","type":"git"},"_npmVersion":"11.8.0","description":"Chai assertions for byte arrays equality","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.0","karma":"^6.3.4","mocha":"^10.4.0","babelify":"^10.0.0","coveralls":"^3.1.1","browserify":"^17.0.0","typescript":"^5.4.5","@babel/core":"^7.15.0","@types/chai":"^4.2.21","karma-mocha":"^2.0.1","semistandard":"^17.0.0","karma-coverage":"^2.0.3","karma-browserify":"^8.1.0","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^6.0.0","karma-firefox-launcher":"^2.1.1"},"_npmOperationalInternal":{"tmp":"tmp/chai-bites_0.3.0_1779518310866_0.0026631939133969773","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"chai-bites","version":"0.3.1","description":"Chai assertions for byte arrays equality","repository":{"type":"git","url":"git+https://github.com/achingbrain/chai-bites.git"},"bugs":{"url":"https://github.com/achingbrain/chai-bites/issues"},"engines":{"node":">=10"},"main":"index.js","type":"module","types":"index.d.ts","scripts":{"lint":"semistandard","test":"mocha test --exclude test/types.js","test-browser":"karma start","test-ts":"tsc -p test && node test/types.js"},"keywords":["chai","chai-plugin","assertions","testing","buffers","uint8array"],"author":{"name":"Alex Ostrovski","email":"ostrovski.alex@gmail.com"},"license":"Apache-2.0","devDependencies":{"@babel/core":"^7.15.0","@types/chai":"^4.2.21","babel-plugin-istanbul":"^6.0.0","babelify":"^10.0.0","browserify":"^17.0.0","chai":"^5.1.0","coveralls":"^3.1.1","karma":"^6.3.4","karma-browserify":"^8.1.0","karma-coverage":"^2.0.3","karma-firefox-launcher":"^2.1.1","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha":"^10.4.0","semistandard":"^17.0.0","typescript":"^5.4.5"},"gitHead":"1eb99f27c34c9ae61da97bf133f1a0b14eb4c9a7","_id":"chai-bites@0.3.1","homepage":"https://github.com/achingbrain/chai-bites#readme","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"integrity":"sha512-t+8yIdncUkEox8u9gM1uu0fpPIn5lMZ71ljBKch8k3/0wBAc8765JL8wm0eez9OmwmaV+sAu1t2B41AqtydPgg==","shasum":"748cfc7d78910244c094e7246f713c2fed3286c7","tarball":"https://registry.npmjs.org/chai-bites/-/chai-bites-0.3.1.tgz","fileCount":5,"unpackedSize":17917,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDhXUR48AfdZ7P1tbhvmIUoiVQRvyTWCy/pKGqmDydxzQIgSJDmyLgluWf1NLp5loiyCX8T3bDNRSQnpoXUS75Loa4="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chai-bites_0.3.1_1779528289119_0.04687919986429012"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-13T20:05:28.347Z","modified":"2026-05-23T09:24:49.386Z","0.1.2":"2021-12-13T20:05:28.492Z","0.2.0":"2024-05-01T11:39:13.751Z","0.3.0":"2026-05-23T06:38:31.030Z","0.3.1":"2026-05-23T09:24:49.277Z"},"bugs":{"url":"https://github.com/achingbrain/chai-bites/issues"},"author":{"name":"Alex Ostrovski","email":"ostrovski.alex@gmail.com"},"license":"Apache-2.0","homepage":"https://github.com/achingbrain/chai-bites#readme","keywords":["chai","chai-plugin","assertions","testing","buffers","uint8array"],"repository":{"type":"git","url":"git+https://github.com/achingbrain/chai-bites.git"},"description":"Chai assertions for byte arrays equality","maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"readme":"Fork of [chai-bytes](https://www.npmjs.com/package/chai-bytes) published as ESM with relaxed input types.\n\n# Chai Assertions for Byte Arrays Equality\n\n[![Build status][workflow-image]][workflow-url]\n[![Code coverage][coveralls-image]][coveralls-url]\n[![Code style][code-style-image]][code-style-url]\n[![License][license-image]][license-url]\n\n[workflow-image]: https://github.com/slowli/chai-bytes/workflows/Node.js%20CI/badge.svg?branch=master\n[workflow-url]: https://github.com/slowli/chai-bytes/actions\n[coveralls-image]: https://img.shields.io/coveralls/slowli/chai-bytes.svg\n[coveralls-url]: https://coveralls.io/github/slowli/chai-bytes\n[code-style-image]: https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg\n[code-style-url]: https://github.com/Flet/semistandard\n[license-image]: https://img.shields.io/github/license/slowli/chai-bytes.svg\n[license-url]: https://opensource.org/licenses/Apache-2.0\n\n**chai-bytes** extends [Chai][chai] with a `equalBytes` function,\nwhich can be used to test equality of byte arrays (i.e., `Uint8Array` instances).\n\n## Basic Usage\n\n```javascript\nconst { expect, assert } = require('chai')\n  .use(require('chai-bytes'));\n\nconst buffer = new Uint8Array([ 1, 2, 3, 4, 5 ]);\nexpect(buffer).to.equalBytes('0102030405');\n// `assert` style works, too\nassert.equalBytes(buffer, [1, 2, 3, 4, 5], 'error message');\n```\n\nAn expected value passed to `equalBytes` can be:\n\n- Hexadecimal string, e.g., `'c0ffee'`\n- Array, e.g., `[1, 2, 3]`\n- Array-like object (i.e., an object having the `length` property\n  and items accessible by integer properties).\n  This includes `Uint8Array` instances, among other things\n\nIf the passed value does not fall into any of these categories,\na `TypeError` is thrown.\n\n## Developer Notes\n\n**chai-bytes** uses combined code coverage from the tested browser environments\n(Firefox and PhantomJS). This is because PhantomJS is a typical old environment\nthat may have problems with `Uint8Array`s (e.g., it misses a substantial parts\nof their methods).\n\n## License\n\n**chai-bytes** is available under [Apache-2.0 license](LICENSE).\n\n[chai]: https://chaijs.com/\n","readmeFilename":"README.md"}