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 🙏

© 2025 – Pkg Stats / Ryan Hefner

exif-stripper

v0.0.5

Published

A lightweight JavaScript plugin for stripping off EXIF data (image metadata) from any jpeg image

Readme

Exif-Stripper

A lightweight JavaScript plugin for stripping off EXIF data (image metadata) from any jpeg image

Installation

npm install exif-stripper

Usage

var exifStripper = require('exif-stripper');

Simply call the .strip function that takes one argument (image url). This will return a promise, once resolved you can use .then to capture the response containing a blob url. The new url will point to the same image with all exif data stripped off.

exifStripper.strip(IMAGE_URL)
  .then( function(response){ alert(response.url) });

Important Note

Because of the browser's same origin policy, the image has to be served from the same source as the website requesting it. OR the image has to be served from a source that has sufficient CORS Permissions. For more infomration about setting up CORS policies, check this article Using CORS


What is EXIF?

Short answer: it is the metadata attached to any photo taken by a digital camera (including smartphones)

Exif stands for (Exchangeable image file format) and can contain a wide range of information, such as (location where image was taken, original orientation, the type of camera used, etc.) For more information, read Description of Exif file format

Why strip off EXIF?

You'll find many opinions about why exif data should be stripped off images. Those opinions mostly revolve around privacy concerns.

My personal motivation for stripping off exif data from images is to avoid images being displayed differently across different operating systems.

For example, iOS takes the exif orientation value into account before displaying an image. On the other side, Android ignores this value altogether. This means that the same image will be displayed differently across different devices, and you will have no easy way of knowing/controlling this.

Read this article EXIF Orientation Handling Is a Ghetto by Dave Perrett where he explains why this is a big problem. And I quote him:

"The problem is that there doesn’t seem to be any consensus on how to handle these orientation tags on the web. Results vary wildly across sites, between different products from the same company, between browsers, and even within a single browser depending on context (yes I’m looking at you Safari). Images with the same orientation value may also be rotated differently on some sites depending on whether they’re landscape or portrait."

This plugin reuses a portion of Musa's awesome answer to the question How to Strip EXIF data from image on SO