Skip to main content

Installation

Package Managers

npm

npm install exiftool-ts

pnpm

pnpm add exiftool-ts

Yarn

yarn add exiftool-ts

Bun

bun add exiftool-ts

Requirements

  • Node.js 18+ (required for native fetch, crypto, and streams)
  • TypeScript 5.6+ (for type definitions)
  • No native dependencies or external binaries required

Optional Dependencies

For browser usage, you may need to polyfill:

  • crypto (Web Crypto API available in modern browsers)
  • stream (available via stream-browserify if needed)

Verifying Installation

# Check version
npx exiftool-ts --version

# Test with sample file
npx exiftool-ts -j sample.jpg

Development Installation

# Clone and install
git clone https://github.com/woss/exiftool.git
cd exiftool
pnpm install

# Run tests
pnpm test

# Build
pnpm build