npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

raw2jpg

v1.0.0

Published

CLI tool to convert camera RAW files to JPEG with quality and resize options

Readme

raw2jpg

raw2jpg cover

Batch convert camera RAW files to JPEG from the command line, with quality and resize controls.

Supports 17 RAW formats from major camera manufacturers including Sony (ARW), Canon (CR2/CR3), Nikon (NEF), Fujifilm (RAF), and more. Uses system-native sips on macOS or dcraw on Linux/Windows — no extra setup needed on Mac.

Available on SkillPad

Quick Start

npx raw2jpg ./photos --size 2k

Or install globally if you prefer:

npm install -g raw2jpg

Usage

npx raw2jpg [options] <input>

Options

| Option | Description | Default | |---|---|---| | -o, --output <dir> | Output directory | ./jpg_output | | -q, --quality <n> | JPEG quality 1-100 | 90 | | -s, --size <preset> | Size preset: original 4k 2k hd fhd | original | | -w, --width <n> | Max width in px (keeps aspect ratio) | — | | --height <n> | Max height in px (keeps aspect ratio) | — | | -c, --concurrency <n> | Files to convert in parallel | CPU cores | | --overwrite | Overwrite existing files | false | | --dry-run | Preview without writing files | false | | -v, --verbose | Verbose output | false |

Examples

# Convert all RAW files in a directory
npx raw2jpg ./photos

# Resize to 2K with 85% quality
npx raw2jpg ./photos --size 2k -q 85

# Custom output directory
npx raw2jpg ./photos -o ./exports

# Preview what would be converted
npx raw2jpg ./photos --dry-run

# Convert with 4 parallel workers
npx raw2jpg ./photos -c 4

Output:

Converting [==========] 113/113 | DSC05840.ARW | ETA: 0s

✓ Conversion complete!

  Files converted:  113
  Total input size: 2.6 GB
  Total output size: 50 MB
  Compression ratio: 98%
  Output directory:  /Users/user/photos/jpg_output

Supported Formats

| Extension | Manufacturer | |---|---| | .arw | Sony | | .cr2 .cr3 | Canon | | .nef .nrw | Nikon | | .raf | Fujifilm | | .orf | Olympus / OM System | | .rw2 | Panasonic | | .pef | Pentax | | .srw | Samsung | | .dng | Adobe DNG | | .3fr | Hasselblad | | .kdc .dcr | Kodak | | .erf | Epson | | .rwl | Leica | | .raw | Generic |

Notes

  • macOS: Uses built-in sips — no additional installation required.
  • Linux/Windows: Requires dcraw. Install via apt install dcraw or brew install dcraw.
  • Size presets (--size) and explicit dimensions (--width/--height) cannot be combined.
  • Failed files are skipped and reported at the end; the rest of the batch continues.

License

MIT