JSPM

mediafile-metadata

1.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q45044F
  • License MIT

Efficient image/video metadata reader.

Package Exports

  • mediafile-metadata
  • mediafile-metadata/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mediafile-metadata) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mediafile-metadata

Efficiently (only required bits) reads photo/video metadata. Understands tiff/exif (jpeg, nef, cr2, etc), isobmff (mov, mp4, heic, etc) formats.

Installation

npm i mediafile-metadata

Example

const mediafileMetadata = require("mediafile-metadata");
const essentials = await mediafileMetadata.getEssentials("/path/to/mediafile"); // path to photo or video file
console.log(essentials);
// {
//   creationDate: new Date("2022-05-10T15:48:20.000Z"),
//   camera: "Apple iPhone XS",
// }

License

MIT