1.0.3 • Published 9 years ago
sqlfile-loader v1.0.3
sqlfile-loader
Basic SQL file loader with uglify option.
Installation
$ npm i --save sqlfile-loaderor
$ yarn add sqlfile-loaderExample
const init = require('sqlfile-loader');
let sqlfile = './example.sql'; // Path to an sql file
let opts = {uglify: true};
let result = sqlfileLoader(sqlfile, opts);
console.log('result:', result);Documentation
sqlfileLoader(sqlfile, opts)
Basic SQL file loader with uglify option.
Params
- string
sqlfile: The full file path to sql file. - object
opts: Optional object used to set uglify true option.
Return
- string Content of sql file.