'Using knexjs without npm

I was exploring libraries in the JS ecosystem to construct SQL queries (DDL and DML) with required information in another format. I found KnexJS among others to have comprehensive support for different SQL dialects, but all the examples I have found are starting with using npm to install it as a dependency.

The current project setup is not npm (in fact, no package manager of any kind) and I don't want to introduce npm now. Also, just adding knex is bringing 22 other packages along with it. Is there any dependency-free/minified binary available for my use case? I have searched the GitHub repo and releases page to see if they publish anything of this sort, but couldn't find anything.

PS: My use case is to just construct the queries and copy them to the clipboard, and the user can use them in whatever way they want.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source