{"name":"chai","version":"5.3.2","keywords":["test","assertion","assert","testing","chai"],"author":{"name":"Jake Luer","email":"jake@alogicalparadox.com"},"license":"MIT","_id":"chai@5.3.2","maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"contributors":[{"name":"Jake Luer","email":"jake@alogicalparadox.com"},{"url":"http://domenicdenicola.com","name":"Domenic Denicola","email":"domenic@domenicdenicola.com"},{"name":"Veselin Todorov","email":"hi@vesln.com"},{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"}],"homepage":"http://chaijs.com","bugs":{"url":"https://github.com/chaijs/chai/issues"},"dist":{"shasum":"e2c35570b8fa23b5b7129b4114d5dc03b3fd3401","tarball":"http://registry-npm.ywwl.com/chai/download/chai-5.3.2.tgz","fileCount":40,"integrity":"sha512-kx7GHSOBiiIQ+DDgMP6YMtYkb/3Usm2nUYblNEM9P+/OfkuP7OjfoDlq/DCe1OU0GsREUa0rNAxZmzxgO6+jWg==","signatures":[{"sig":"MEYCIQCMLZzumuo9pap/JPwBt/FRRqglE9UNVYk8i0vjNkBK7gIhAIILnnJvx5W2poyt7BmI0z8E8vNnHPQJK/xMew4+UoYv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/chai@5.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":431258,"size":79175,"noattachment":false,"key":"/chai/-/chai-5.3.2.tgz"},"main":"./index.js","type":"module","engines":{"node":">=18"},"gitHead":"f2c2e3eb44ad687a3a641ac8475e158562016437","scripts":{"lint":"npm run lint:js && npm run lint:format","test":"npm run test-node && npm run test-chrome","build":"esbuild --bundle --format=esm --outfile=index.js lib/chai.js","clean":"rm -rf index.js coverage/","format":"prettier --write lib","lint:js":"eslint lib/","pretest":"npm run lint","prebuild":"npm run clean","test-node":"c8 --99 --check-coverage mocha --require ./test/bootstrap/index.js test/*.js","lint:types":"tsc","lint:format":"prettier --check lib","test-chrome":"web-test-runner --playwright"},"_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"repository":{"url":"git+https://github.com/chaijs/chai.git","type":"git"},"_npmVersion":"10.9.3","description":"BDD/TDD assertion library for node.js and the browser. Test framework agnostic.","directories":{},"_nodeVersion":"22.18.0","dependencies":{"loupe":"^3.1.0","pathval":"^2.0.0","deep-eql":"^5.0.1","check-error":"^2.1.1","assertion-error":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","mocha":"^10.2.0","eslint":"^8.56.0","esbuild":"^0.25.9","prettier":"^3.4.2","@eslint/js":"^9.17.0","typescript":"~5.7.3","@web/test-runner":"^0.18.0","eslint-plugin-jsdoc":"^48.0.4","@web/dev-server-rollup":"^0.6.1","@rollup/plugin-commonjs":"^25.0.7","@web/test-runner-playwright":"^0.11.0"},"_npmOperationalInternal":{"tmp":"tmp/chai_5.3.2_1755851237228_0.6966107174106528","host":"s3://npm-registry-packages-npm-production"},"readme":"<h1 align=center>\n  <a href=\"http://chaijs.com\" title=\"Chai Documentation\">\n    <img alt=\"ChaiJS\" src=\"http://chaijs.com/img/chai-logo.png\">\n  </a>\n  <br>\n  chai\n</h1>\n\n<p align=center>\n  Chai is a BDD / TDD assertion library for <a href=\"http://nodejs.org\">node</a> and the browser that can be delightfully paired with any javascript testing framework.\n</p>\n\n<p align=center>\n  <a href=\"https://www.npmjs.com/package/chai\">\n    <img\n      alt=\"downloads:?\"\n      src=\"https://img.shields.io/npm/dm/chai.svg?style=flat-square\"\n    />\n  </a>\n  <a href=\"https://www.npmjs.com/package/chai\">\n    <img\n      alt=\"node:?\"\n      src=\"https://img.shields.io/badge/node-%3E=18.0-blue.svg?style=flat-square\"\n    />\n  </a>\n  <br/>\n  <a href=\"https://chai-slack.herokuapp.com/\">\n    <img\n      alt=\"Join the Slack chat\"\n      src=\"https://img.shields.io/badge/slack-join%20chat-E2206F.svg?style=flat-square\"\n    />\n  </a>\n  <a href=\"https://gitter.im/chaijs/chai\">\n    <img\n      alt=\"Join the Gitter chat\"\n      src=\"https://img.shields.io/badge/gitter-join%20chat-D0104D.svg?style=flat-square\"\n    />\n  </a>\n  <a href=\"https://opencollective.com/chaijs\">\n    <img\n      alt=\"OpenCollective Backers\"\n      src=\"https://opencollective.com/chaijs/backers/badge.svg?style=flat-square\"\n    />\n  </a>\n</p>\n\nFor more information or to download plugins, view the [documentation](http://chaijs.com).\n\n## What is Chai?\n\nChai is an _assertion library_, similar to Node's built-in `assert`. It makes testing much easier by giving you lots of assertions you can run against your code.\n\n## Installation\n\n### Node.js\n\n`chai` is available on [npm](http://npmjs.org). To install it, type:\n\n    $ npm install --save-dev chai\n\n### Browsers\n\nYou can also use it within the browser; install via npm and use the `index.js` file found within the download. For example:\n\n```html\n<script src=\"./node_modules/chai/index.js\" type=\"module\"></script>\n```\n\n## Usage\n\nImport the library in your code, and then pick one of the styles you'd like to use - either `assert`, `expect` or `should`:\n\n```js\nimport { assert } from 'chai';  // Using Assert style\nimport { expect } from 'chai';  // Using Expect style\nimport { should } from 'chai';  // Using Should style\n```\n\n### Register the chai testing style globally\n\n```js\nimport 'chai/register-assert';  // Using Assert style\nimport 'chai/register-expect';  // Using Expect style\nimport 'chai/register-should';  // Using Should style\n```\n\n### Import assertion styles as local variables\n\n```js\nimport { assert } from 'chai';  // Using Assert style\nimport { expect } from 'chai';  // Using Expect style\nimport { should } from 'chai';  // Using Should style\nshould();  // Modifies `Object.prototype`\n\nimport { expect, use } from 'chai';  // Creates local variables `expect` and `use`; useful for plugin use\n```\n\n### Usage with Mocha\n\n```bash\nmocha spec.js --require chai/register-assert.js  # Using Assert style\nmocha spec.js --require chai/register-expect.js  # Using Expect style\nmocha spec.js --require chai/register-should.js  # Using Should style\n```\n\n[Read more about these styles in our docs](http://chaijs.com/guide/styles/).\n\n## Plugins\n\nChai offers a robust Plugin architecture for extending Chai's assertions and interfaces.\n\n- Need a plugin? View the [official plugin list](http://chaijs.com/plugins).\n- Want to build a plugin? Read the [plugin api documentation](http://chaijs.com/guide/plugins/).\n- Have a plugin and want it listed? Simply add the following keywords to your package.json:\n  -  `chai-plugin`\n  -  `browser` if your plugin works in the browser as well as Node.js\n  -  `browser-only` if your plugin does not work with Node.js\n\n### Related Projects\n\n- [chaijs / chai-docs](https://github.com/chaijs/chai-docs): The chaijs.com website source code.\n- [chaijs / assertion-error](https://github.com/chaijs/assertion-error): Custom `Error` constructor thrown upon an assertion failing.\n- [chaijs / deep-eql](https://github.com/chaijs/deep-eql): Improved deep equality testing for Node.js and the browser.\n- [chaijs / check-error](https://github.com/chaijs/check-error): Error comparison and information related utility for Node.js and the browser.\n- [chaijs / loupe](https://github.com/chaijs/loupe): Inspect utility for Node.js and browsers.\n- [chaijs / pathval](https://github.com/chaijs/pathval): Object value retrieval given a string path.\n\n### Contributing\n\nThank you very much for considering to contribute!\n\nPlease make sure you follow our [Code Of Conduct](https://github.com/chaijs/chai/blob/master/CODE_OF_CONDUCT.md) and we also strongly recommend reading our [Contributing Guide](https://github.com/chaijs/chai/blob/master/CONTRIBUTING.md).\n\nHere are a few issues other contributors frequently ran into when opening pull requests:\n\n- Please do not commit changes to the `chai.js` build. We do it once per release.\n- Before pushing your commits, please make sure you [rebase](https://github.com/chaijs/chai/blob/master/CONTRIBUTING.md#pull-requests) them.\n\n### Contributors\n\nPlease see the full\n[Contributors Graph](https://github.com/chaijs/chai/graphs/contributors) for our\nlist of contributors.\n\n### Core Contributors\n\nFeel free to reach out to any of the core contributors with your questions or\nconcerns. We will do our best to respond in a timely manner.\n\n[![Keith Cirkel](https://avatars3.githubusercontent.com/u/118266?v=3&s=50)](https://github.com/keithamus)\n[![James Garbutt](https://avatars3.githubusercontent.com/u/5677153?v=3&s=50)](https://github.com/43081j)\n[![Kristján Oddsson](https://avatars3.githubusercontent.com/u/318208?v=3&s=50)](https://github.com/koddsson)\n\n### Core Contributor Alumni\n\nThis project would not be what it is without the contributions from our prior\ncore contributors, for whom we are forever grateful:\n\n[![Jake Luer](https://avatars3.githubusercontent.com/u/58988?v=3&s=50)](https://github.com/logicalparadox)\n[![Veselin Todorov](https://avatars3.githubusercontent.com/u/330048?v=3&s=50)](https://github.com/vesln)\n[![Lucas Fernandes da Costa](https://avatars3.githubusercontent.com/u/6868147?v=3&s=50)](https://github.com/lucasfcosta)\n[![Grant Snodgrass](https://avatars3.githubusercontent.com/u/17260989?v=3&s=50)](https://github.com/meeber)\n","publish_time":1755851237425,"_cnpm_publish_time":1755851237425,"dist-tags":{"latest":"6.3.0","legacy":"4.5.0","v5-legacy":"5.3.3"}}