query-preperator
v0.0.1
Published
Preps query items
Downloads
3
Readme
query-preperator
Select a wrapper for list of items in a file
Get it!
Cli
npm install -g query-preperator
module
npm install --save query-preperator
Usage CLI
queryprep -b -d -s <file>
options:
-b preps query with brackets
-d preps query with double qoutes
-s saves prepped query to file
Usage API
var queryPreperator = require('queryPreperator')
var file = process.argv[2] || './some.txt'
queryPreperator(file, 'brackets', false, function (err, data) {
if (err) throw err
console.log(data)
})
API
queryPreperator(file, type, save, cb)
file: path to file
type: 'brackets', 'double quotes'
save: logical save results to file, if false the result will be logged to the console
cb: error first callback