Skip to content

Instantly share code, notes, and snippets.

@rupertqin
Created February 24, 2023 07:12
Show Gist options
  • Save rupertqin/2ae89eb4b737d177691771f0b5c8c141 to your computer and use it in GitHub Desktop.
Save rupertqin/2ae89eb4b737d177691771f0b5c8c141 to your computer and use it in GitHub Desktop.
import extractd from "extractd";
import { readdir } from "node:fs/promises";
import { join } from "node:path";
(async () => {
const dir = "/Users/qx/Downloads/100MSDCF/";
let files = await readdir(dir);
files = files
.filter((file) => file.endsWith(".ARW"))
.map((file) => join(dir, file));
console.log(files);
const done = await extractd.generate(files, {
destination: join(dir, "..", "target"),
persist: true,
});
console.log(done);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment