xget.js
v0.0.3
Published
get framework
Downloads
2
Readme
xget
x get
build
summary
- support customize plugins , easy extend
- support recurse get lustJson
- input and filter support multi or branch
- support filter guess input /output type // todo
- maybe input.file can support Glob //uncomfirn
main desgin
details @ docs/
how to use
npm i --save xget.js
var xget = require('xget.js')
// get input
xget.get({
input : {
isLust:true,
input:{
type: "file",
path: [__dirname + "/data2/c-0.txt",__dirname + "/data2/c-1.txt",__dirname + "/data2/c-2.txt",__dirname + "/data2/c-3.txt",__dirname + "/data2/c-4.txt"],
encode: "utf8",
multi:false
},
filter:[
{
role: "extractor",
type: "ocrPre"
}
]
}
},{verbose:false}).then(raw=>{
var options = { verbose : false}
options.input = raw.input
xget.get({
all : {
isLust:true,
filter:[
{
role: "extractor",
type:"ocrSplit"
}
]
}
},options).then(data=>{
//console.log(data)
console.log(data.all)
})
})