mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
Add archiver dependency to package.json and update package-lock. Require archiver in task.js and implement createDieDb(srcDir, archivePath) to produce zip-based .die-db archives of processed output directories. After cleaning and reporting, the script now creates a .die-db archive per input directory and logs success/failure with archive sizes.
14 lines
No EOL
270 B
JavaScript
14 lines
No EOL
270 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = range;
|
|
function range(size) {
|
|
var result = Array(size);
|
|
while (size--) {
|
|
result[size] = size;
|
|
}
|
|
return result;
|
|
}
|
|
module.exports = exports.default; |