require-sql

JSON →
library 1.0.0 ·javascript abandoned
verified Jun 5, 2026

This package extends Node.js require() to support .sql files, returning the file contents as a plain string. Version 1.0.0 is the only release with no active development or updates. It is a simple convenience tool that avoids JavaScript multiline string syntax, but has no notable differentiators other than its minimal API. It essentially registers an extension handler for .sql files via require.extensions.