</>PackageGraphPackageGraph

knex

npmv3.3.0TypeScript

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

4.4M
Weekly downloads
1
Dependents
60
Dependencies
82/100
Popularity

Overview

knex is an npm package that a batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3. It is very popular, with about 4.4M downloads per week and 1 known dependents in the graph. The latest version is 3.3.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3 and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (4.4M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (60 direct dependencies) increases install size and audit surface.

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

Relationship graph

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

Dependencies

Peer (1)

pg-query-stream ^4.14.0

Dev (45)

@tsconfig/node12 ^1.0.11@tsconfig/recommended ^1.0.1@types/minimatch ^5.1.2@types/node ^20.4.0JSONStream ^1.3.5better-sqlite3 ^10.1.0chai ^4.3.6chai-as-promised ^7.1.1chai-subset-in-order ^3.1.0cli-testlab ^3.0.0cross-env ^7.0.3eslint ^8.54.0eslint-config-prettier ^8.6.0eslint-plugin-import ^2.29.0eslint-plugin-mocha-no-only ^1.1.1eslint-plugin-n ^17.23.1eslint-plugin-prettier ^4.2.1expect-type ^1.3.0faucet ^0.0.4husky ^8.0.1jake ^10.8.5lint-staged ^16.2.7mariadb ^3.5.2mocha ^10.0.0mock-fs ^5.1.4mysql ^2.18.1mysql2 ^3.2.0nyc ^15.1.0oracledb ^6.1.0pg ^8.20.0pg-query-stream ^4.14.0prettier 2.8.7rimraf ^5.0.5semver ^7.7.4sinon ^15.0.1sinon-chai ^3.7.0source-map-support ^0.5.21sqlite3 ^5.0.11tape ^5.6.0tedious ^18.2.1toxiproxy-node-client ^4.0.0ts-node ^10.9.1tsd ^0.28.1tstyche ^6.2.0typescript 5.4.5

Used by

Popular packages that depend on knex.

Alternatives to knex

Frequently installed together

Version history

VersionPublishedLicense
3.3.0latest22 days agoMIT
3.2.102 months agoMIT
3.2.93 months agoMIT
3.2.83 months agoMIT
3.2.73 months agoMIT
3.2.63 months agoMIT
3.2.53 months agoMIT
3.2.43 months agoMIT
3.2.33 months agoMIT
3.2.23 months agoMIT
3.2.13 months agoMIT
3.2.03 months agoMIT
3.1.02 years agoMIT
3.0.12 years agoMIT
3.0.02 years agoMIT
2.5.13 years agoMIT
2.5.03 years agoMIT
2.4.23 years agoMIT
2.4.13 years agoMIT
2.4.03 years agoMIT

Maintainers

Keywords

Frequently asked questions

How do I install knex?

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

What license is knex released under?

knex is distributed under the MIT license.

How popular is knex?

knex has approximately 4,402,236 downloads per week and 1 known dependent packages.