3.0.0 • Published 3 years ago
files-extractor v3.0.0
files-extractor
Extract files that have changed between the specified date.
Install
Notice: if want use command line must install with
npm i -g files-extractor
Introduction
command line
>fextract -h
Usage: fextract [options]
Extract files that have changed between the specified date.
Options:
-V, --version output the version number
-d, --dot extract dot files
-f, --files <files> set the files of extract
-o, --output <path> set the output dir of extract
-s, --start <date> set the start date of extract
-e, --end <date> set the end date of extract
-t, --types <type,...> set the filter types[mtime, ctime, atime, birthtime] of extract
-h, --help output usage information
Documentation can be found at https://github.com/nuintun/files-extractor#readme.
fextract.yml
files: # pattern to search for files (see: node-glob)
**/*
output: # output dir of extract
.extract
start: # filter start date of extract
2017/9/19
end: # filter end date of extract
2017/9/20
type: # filter type of extract, one or more of [mtime, ctime, atime, birthtime]
mtime
dot: # include dot files (see: node-glob)
false
ignore: # pattern for exclude search (see: node-glob)
- node_modules/**/*
API
'use strict';
const extractor = require('files-extractor');
const STATUS = extractor.STATUS;
// Returned a child process
const worker = extractor(options);
// Listen message event
worker.on('message', function (message) {
switch (message.status) {
case STATUS.BOOTSTRAP:
// Bootstrap
break;
case STATUS.SEARCHING:
// Searching
break;
case STATUS.SEARCHED:
// Searched
break;
case STATUS.FILTERING:
// Filtering
break;
case STATUS.FILTERED:
// Filtered
break;
case STATUS.EXTRACTING:
// Extracting
break;
case STATUS.EXTRACTED:
// Extracted
break;
case STATUS.WARNING:
// Warning
break;
case STATUS.FAILED:
// Failed (child process will automatic exit)
break;
}
});
3.0.0
3 years ago
2.0.0
4 years ago
1.0.0
5 years ago
0.4.7
6 years ago
0.4.6
6 years ago
0.4.5
6 years ago
0.4.4
6 years ago
0.4.3
6 years ago
0.4.2
6 years ago
0.4.1
6 years ago
0.4.0
6 years ago
0.3.9
6 years ago
0.3.8
6 years ago
0.3.7
7 years ago
0.3.6
7 years ago
0.3.5
7 years ago
0.3.4
7 years ago
0.3.3
7 years ago
0.3.2
7 years ago
0.3.1
7 years ago
0.3.0
7 years ago
0.2.3
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago