1.0.3 • Published 8 years ago

sqlfile-loader v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

sqlfile-loader

Basic SQL file loader with uglify option.

Installation

$ npm i --save sqlfile-loader

or

$ yarn add sqlfile-loader

Example

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.
1.0.3

8 years ago

1.0.1

8 years ago