</>PackageGraphPackageGraph

chai

npmv6.2.2

BDD/TDD assertion library for node.js and the browser. Test framework agnostic.

0
Weekly downloads
19
Dependents
18
Dependencies
10/100
Popularity

Overview

chai is an npm package that bDD/TDD assertion library for node.js and the browser. Test framework agnostic. The latest version is 6.2.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need bDD/TDD assertion library for node.js and the browser. Test framework agnostic and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).

Cons

  • Large dependency tree (18 direct dependencies) increases install size and audit surface.
  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Relationship graph

Dependencies (left) and dependents (right) of chai.

Dependencies

Dev (18)

@eslint/js ^9.17.0@rollup/plugin-commonjs ^29.0.0@web/dev-server-rollup ^0.6.1@web/test-runner ^0.20.0@web/test-runner-playwright ^0.11.0assertion-error ^2.0.1c8 ^10.1.3check-error ^2.1.1deep-eql ^5.0.1esbuild ^0.27.0eslint ^9.0.0eslint-plugin-jsdoc ^61.0.0globals ^16.3.0loupe ^3.1.0mocha ^11.0.0pathval ^2.0.0prettier ^3.4.2typescript ~5.9.0

Used by

Popular packages that depend on chai.

eslintnpm

An AST-based pattern checker for JavaScript.

134.4M/wk36 dependentsMITTS
rxjsnpm

Reactive Extensions for modern JavaScript

89M/wk1 dependentsApache-2.0TS
pg-protocolnpm

The postgres client/server binary protocol, implemented in TypeScript

46.4M/wk1 dependentsMITTS
pg-connection-stringnpm

Functions for dealing with a PostgreSQL connection string

40.2M/wk1 dependentsMITTS
kyselynpm

Type safe SQL query builder

10.3M/wk1 dependentsMIT
lessnpm

Leaner CSS

10.3M/wk2 dependentsApache-2.0
better-sqlite3npm

The fastest and simplest library for SQLite in Node.js.

7.7M/wk1 dependentsMIT
knexnpm

A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3

4.4M/wk1 dependentsMITTS
promise-limitnpm

limits calls to functions that return promises

3.3M/wk1 dependentsISC
stylusnpm

Robust, expressive, and feature-rich CSS superset

2.7M/wk1 dependentsMIT
fast-levenshteinnpm

Efficient implementation of Levenshtein algorithm with locale-specific collator support.

0/wk1 dependentsMIT
yargsnpm

yargs the modern, pirate-themed, successor to optimist.

0/wk3 dependentsMIT
saxesnpm

An evented streaming XML parser in JavaScript

0/wk1 dependentsISCTS
@asamuzakjp/dom-selectornpm

A CSS selector engine.

0/wk1 dependentsMITTS
istanbul-lib-coveragenpm

Data library for istanbul coverage objects

0/wk3 dependentsBSD-3-Clause
istanbul-reportsnpm

istanbul reports

0/wk3 dependentsBSD-3-Clause
@bcoe/v8-coveragenpm

Helper functions for V8 coverage files.

0/wk2 dependentsMIT
istanbul-lib-reportnpm

Base reporting library for istanbul

0/wk4 dependentsBSD-3-Clause
mongodb-connection-string-urlnpm

MongoDB connection strings, based on the WhatWG URL API

0/wk1 dependentsApache-2.0TS
bsonnpm

A bson parser for node.js and the browser

0/wk2 dependentsApache-2.0TS
@mongodb-js/saslprepnpm

SASLprep: Stringprep Profile for User Names and Passwords, rfc4013

0/wk1 dependentsMITTS
kerberosnpm

Kerberos library for Node.js

0/wk2 dependentsApache-2.0TS
gcp-metadatanpm

Get the metadata from a Google Cloud Platform environment

0/wk1 dependentsApache-2.0TS
@mongodb-js/zstdnpm

[![CI](https://github.com/mongodb-js/zstd/actions/workflows/test.yml/badge.svg)](https://github.com/mongodb-js/zstd/actions/workflows/test.yml)

0/wk2 dependentsApache-2.0TS

Alternatives to chai

Frequently installed together

Version history

VersionPublishedLicense
6.2.2latest6 months agoMIT
6.2.18 months agoMIT
6.2.09 months agoMIT
6.1.09 months agoMIT
5.3.311 months agoMIT
6.0.111 months agoMIT
6.0.011 months agoMIT
5.3.211 months agoMIT
5.3.111 months agoMIT
5.3.011 months agoMIT
5.2.211 months agoMIT
5.2.11 year agoMIT
5.2.01 year agoMIT
5.1.21 year agoMIT
4.5.02 years agoMIT
5.1.12 years agoMIT
5.1.02 years agoMIT
5.0.32 years agoMIT
5.0.22 years agoMIT
4.4.12 years agoMIT

Maintainers

Keywords

Frequently asked questions

How do I install chai?

Run `npm install chai` to add chai to your npm project.

What license is chai released under?

chai is distributed under the MIT license.

How popular is chai?

chai has approximately 0 downloads per week and 19 known dependent packages.