image-classifier-ts
Version:
Command line tool to auto-classify images, renaming them with appropriate labels. Uses Node and Google Vision API.
17 lines • 526 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CsvWriter = void 0;
var fs = require("fs");
var ENDLINE = "\n";
var CsvWriter = /** @class */ (function () {
function CsvWriter(filePath) {
this.filePath = filePath;
}
CsvWriter.prototype.writeRow = function (rows) {
var line = rows.join(",") + ENDLINE;
fs.appendFileSync(this.filePath, line, "utf8");
};
return CsvWriter;
}());
exports.CsvWriter = CsvWriter;
//# sourceMappingURL=CsvWriter.js.map