UNPKG

650 BJavaScriptView Raw
1// Knex.js
2// --------------
3// (c) 2013-present Tim Griesser
4// Knex may be freely distributed under the MIT license.
5// For details and documentation:
6// http://knexjs.org
7
8const knex = require('./lib/index');
9
10/**
11 * These export configurations enable JS and TS developers
12 * to consume knex in whatever way best suits their needs.
13 * Some examples of supported import syntax includes:
14 * - `const knex = require('knex')`
15 * - `const { knex } = require('knex')`
16 * - `import * as knex from 'knex'`
17 * - `import { knex } from 'knex'`
18 * - `import knex from 'knex'`
19 */
20knex.knex = knex;
21knex.default = knex;
22
23module.exports = knex;