{"_id":"chai-bytes","_rev":"4-dfcd140a89ea870395d5569dc3663064","name":"chai-bytes","description":"Chai assertions for byte arrays equality","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.1":{"name":"chai-bytes","version":"0.1.1","description":"Chai assertions for byte arrays equality","repository":{"type":"git","url":"git+https://github.com/slowli/chai-bytes.git"},"bugs":{"url":"https://github.com/slowli/chai-bytes/issues"},"engines":{"node":">=4"},"main":"index.js","files":["index.js"],"scripts":{"lint":"semistandard","test":"mocha test","coverage":"karma start && ./node_modules/.bin/lcov-result-merger 'coverage/*/lcov.info' coverage/lcov.info"},"keywords":["chai","chai-plugin","assertions","testing","buffers","uint8array"],"author":{"name":"Alex Ostrovski","email":"ostrovski.alex@gmail.com"},"license":"Apache-2.0","devDependencies":{"babel-plugin-istanbul":"^4.1.4","babelify":"^7.3.0","browserify":"^14.4.0","chai":"^4.0.2","coveralls":"^2.13.1","karma":"^1.7.0","karma-browserify":"^5.1.1","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.0.1","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.3","karma-phantomjs-launcher":"^1.0.4","lcov-result-merger":"^1.2.0","mocha":"^3.4.2","semistandard":"^11.0.0"},"peerDependencies":{"chai":">=2 <5"},"gitHead":"3cde901209e99d8f55e639f45ac86983543b0b0b","homepage":"https://github.com/slowli/chai-bytes#readme","_id":"chai-bytes@0.1.1","_shasum":"9b16e20462daf5d7eb4fd665553fe39b36bb45a6","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"slowli","email":"ostrovski.alex@gmail.com"},"dist":{"shasum":"9b16e20462daf5d7eb4fd665553fe39b36bb45a6","tarball":"https://registry.npmjs.org/chai-bytes/-/chai-bytes-0.1.1.tgz","integrity":"sha512-CDgDjZhAfyx+//b3DFYr7qAU9EIVr93vkNKevwZxWKq0h5ZRZjiuQmbR0zpNO50La6T1E3a0NcADh4LEteE1nA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGiV/6wTJmdTduC3qNOjVfr6ppE26h6lgwe7c4dCaRwtAiByvqf01/xm3iJdRmeddlcfQr6eHcfLySQyba957K7HFA=="}]},"maintainers":[{"name":"slowli","email":"ostrovski.alex@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chai-bytes-0.1.1.tgz_1497543629061_0.6684166027698666"},"directories":{}},"0.1.2":{"name":"chai-bytes","version":"0.1.2","description":"Chai assertions for byte arrays equality","repository":{"type":"git","url":"git+https://github.com/slowli/chai-bytes.git"},"bugs":{"url":"https://github.com/slowli/chai-bytes/issues"},"engines":{"node":">=4"},"main":"index.js","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","coverage":"karma start && ./node_modules/.bin/lcov-result-merger 'coverage/*/lcov.info' coverage/lcov.info"},"keywords":["chai","chai-plugin","assertions","testing","buffers","uint8array"],"author":{"name":"Alex Ostrovski","email":"ostrovski.alex@gmail.com"},"license":"Apache-2.0","devDependencies":{"@types/chai":"^4.1.7","babel-plugin-istanbul":"^4.1.4","babelify":"^7.3.0","browserify":"^16.2.3","chai":"^4.0.2","coveralls":"^3.0.2","karma":"^3.1.4","karma-browserify":"^6.0.0","karma-coverage":"^1.1.2","karma-firefox-launcher":"^1.1.0","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.3","karma-phantomjs-launcher":"^1.0.4","lcov-result-merger":"^1.2.0","mocha":"^5.2.0","semistandard":"^11.0.0","typescript":"^3.2.2"},"peerDependencies":{"chai":">=2 <5"},"gitHead":"163e749eed7416158ac279a729011df39e6f7a72","homepage":"https://github.com/slowli/chai-bytes#readme","_id":"chai-bytes@0.1.2","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"slowli","email":"ostrovski.alex@gmail.com"},"dist":{"integrity":"sha512-0ol6oJS0y1ozj6AZK8n1pyv1/G+l44nqUJygAkK1UrYl+IOGie5vcrEdrAlwmLYGIA9NVvtHWosPYwWWIXf/XA==","shasum":"c297e81d47eb3106af0676ded5bb5e0c9f981db3","tarball":"https://registry.npmjs.org/chai-bytes/-/chai-bytes-0.1.2.tgz","fileCount":5,"unpackedSize":17248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcH29BCRA9TVsSAnZWagAAOdwP/RotPnFYuzULBZnav/55\nIxfIfFfckJNBs6LdF47OkX+1+sIrFFieCJuiTcMo/wmxGv9jz7vW9d+KcGEb\neSbG2PPxZIOvQqAzrl4mD23vlr6SQCyA8dLVXftnTVqUbM76A/4tGrLmxpVG\nJ2wEoPG1/dvNn0so63Ef0iZyTQDSYKAGTRfrqv3ZtBRUoAtdL/pMSD7p4kgz\nAOlREoY6JDwDOZoqlTEb6P8xp4Jj32MHN69gmXUHrusKqx+am+gtHxPa5RTq\nWgAbGzqEpf+UVGoXN2CcXhpGwih0/aeAQL2LnTD11YNX2DSfwAjzMl8C8iGW\nI6D8Gm7i+XaoW4MV7IsysG27g+KBwUgvD1sD7YicYJqTYCJeXVF7rSmKgC1n\n8jaZr/ZvqI2BMw1XsD0IBQgDkMU/MabtvBIoumFH4ElknRMS46vvGPojobbz\n9k3wUJHzI1XB2mHK7+GF35L4H45N/WukNRuyqc14mpxrfV58GDcqE4em7CTJ\nUtzBeco2Fi7xTdK50MjKnQPL2WsA0fzbMpUeSkymo6GXKrCUdccJRzmQ/WWF\nLE7KPqPNCdsBC3If5N3AFpCyVf9HB3k2D7EoIVd4UO3/vHChJffk5HLhWeld\nGJkHv4QPA50vuJhBd2wcSI8iFS6DGV3PuiMMWehkehX/TPiXbrqKAzALxF63\nWkQX\r\n=OIBY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEz+XZ25kEY34ENPOHBaOVJ0U+qmX0995go1q6Z5pTS9AiAhA6EseLXihmotvPA5k+7R/K0/d073O9V2YE/JMhLgVA=="}]},"maintainers":[{"name":"slowli","email":"ostrovski.alex@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chai-bytes_0.1.2_1545563969364_0.22559188233568062"},"_hasShrinkwrap":false}},"readme":"# Chai Assertions for Byte Arrays Equality\n\n[![Build status][travis-image]][travis-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[travis-image]: https://img.shields.io/travis/slowli/chai-bytes.svg?style=flat-square\n[travis-url]: https://travis-ci.org/slowli/chai-bytes\n[coveralls-image]: https://img.shields.io/coveralls/slowli/chai-bytes.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/github/slowli/chai-bytes\n[code-style-image]: https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square\n[code-style-url]: https://github.com/Flet/semistandard\n[license-image]: https://img.shields.io/github/license/slowli/chai-bytes.svg?style=flat-square\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(c) 2018 Alex Ostrovski\n\n**chai-bytes** is available under [Apache-2.0 license](LICENSE).\n\n[chai]: https://chaijs.com/\n","maintainers":[{"name":"slowli","email":"ostrovski.alex@gmail.com"}],"time":{"modified":"2022-06-13T05:50:51.023Z","created":"2017-06-15T16:20:30.123Z","0.1.1":"2017-06-15T16:20:30.123Z","0.1.2":"2018-12-23T11:19:29.522Z"},"homepage":"https://github.com/slowli/chai-bytes#readme","keywords":["chai","chai-plugin","assertions","testing","buffers","uint8array"],"repository":{"type":"git","url":"git+https://github.com/slowli/chai-bytes.git"},"author":{"name":"Alex Ostrovski","email":"ostrovski.alex@gmail.com"},"bugs":{"url":"https://github.com/slowli/chai-bytes/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}