Created
February 24, 2023 07:12
-
-
Save rupertqin/2ae89eb4b737d177691771f0b5c8c141 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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