dji-xmetaparser

A XMP parser for DJI drones' metadata

Usage no npm install needed!

<script type="module">
  import djiXmetaparser from 'https://cdn.skypack.dev/dji-xmetaparser';
</script>

README

DJI XMP Metadata Parser

Build Status Coverage Status License: MIT JavaScript Style Guide

Get the most out of your DJI Footage

Swiss tool for extracting XMP metadata from DJI drones.

Features

Right now, it takes some text-input and parses the attributes of <rdf:Description/> You care about loading the image/jpg, XMetaParser does the rest.

Promise-based.

Example

import { parseText } from 'dji-xmetaparser'
fetch('link/to/your.jpg')
    .then(response => response.blob())
    .then(blob => blob.text())
    .then(text => parseText(text))
    .then(metadata => {
        console.log(metadata)
    })
    .catch()
    .finally()

Commands

  • npm run clean - Remove lib/ directory
  • npm test - Run tests with linting and coverage results.
  • npm test:only - Run tests without linting or coverage.
  • npm test:watch - You can even re-run tests on file changes!
  • npm test:prod - Run tests with minified code.
  • npm run test:examples - Test written examples on pure JS for better understanding module usage.
  • npm run lint - Run ESlint with standard-config
  • npm run cover - Get coverage report for your code.
  • npm run build - Babel will transpile ES6 => ES5 and minify the code.
  • npm run prepublish - Hook for npm. Do all the checks before publishing your module.

Installation

  • yarn add dji-xmetaparser
  • npm i dji-xmetaparser --save

License

MIT © Florian Senn

Thanks