# fastify-knexjs

> Fastify KnexJS Plugin

Latest version **1.4.0** (published 2021-05-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install fastify-knexjs
pnpm add fastify-knexjs
yarn add fastify-knexjs
bun add fastify-knexjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2021-05-21 |
| First published | 2017-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 29 |
| Author | Nicolas Balduzzi |
| Maintainers | nbalduzzi |
| Keywords | Fastify, KnexJS, Plugin, Test |

## Links

- npm: https://www.npmjs.com/package/fastify-knexjs
- Repository: https://github.com/nbalduzzi/fastify-knexjs
- Homepage: https://github.com/nbalduzzi/fastify-knexjs#readme
- Issues: https://github.com/nbalduzzi/fastify-knexjs/issues
- npm.io page: https://npm.io/package/fastify-knexjs

## Dependencies (2)

- [knex](https://npm.io/package/knex.md) ^0.95.6
- [fastify-plugin](https://npm.io/package/fastify-plugin.md) ^3.0.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 1.4.0 (latest) — 2021-05-21
- 1.3.0 — 2021-05-21
- 1.2.0 — 2021-05-21
- 1.1.0 — 2021-02-09
- 1.0.0 — 2021-02-09
- 1.0.14 — 2018-09-27
- 1.0.13 — 2018-09-27
- 1.0.12 — 2018-09-27
- 1.0.11 — 2018-09-18
- 1.0.9 — 2018-05-17
- 1.0.8 — 2018-05-14
- 1.0.7 — 2018-05-01
- 1.0.6 — 2018-02-20
- 1.0.5 — 2017-12-11
- 1.0.4 — 2017-12-04
- … 2 more at https://npm.io/package/fastify-knexjs/versions

## README

# Fastify KnexJS Plugin

![Test](https://github.com/nbalduzzi/fastify-knexjs/workflows/Test/badge.svg)
![Semantic Release](https://github.com/nbalduzzi/fastify-knexjs/workflows/Semantic%20Release/badge.svg)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

[![NPM](https://nodei.co/npm/fastify-knexjs.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/fastify-knexjs/)

## Installation

```bash
npm install fastify-knexjs --save
```

## Usage

```javascript
fastify.register(require('fastify-knexjs'), options, (err) =>
  console.error(err)
);

fastify.get('/', (request, reply) => {
  console.log(fastify.knex); // Knex DB instance
});
```

## Options

KnexJS client DB configuration JSON object.

<http://knexjs.org/#Installation-client>

## Author

[Nicolás Balduzzi](nico.balduzzi@gmail.com)

## Contributors

[Patrick Heneise](https://github.com/PatrickHeneise)

## License

Licensed under [MIT](./LICENSE).

---
_Source: https://npm.io/package/fastify-knexjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
