This demo is run from terminal and uses the public analyzeNodeFiles API.
npm run demo:node
See demo/node/batch-example.js for the full runnable example.
import { analyzeNodeFiles } from 'dcraw-wasm/node';
const summary = await analyzeNodeFiles(['/path/to/file.ARW'], {
includeMetadata: true,
includeThumbnail: true,
concurrency: 2,
thumbnailOutputDir: './thumbs'
});
console.log(summary);