Node Batch API Demo

This demo is run from terminal and uses the public analyzeNodeFiles API.

Back to demo index

Run Command

npm run demo:node

Example Script

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);