xmp-marker
v0.1.1
Published
Extracts marker objects from an Adobe XMP file.
Downloads
4
Maintainers
Readme
xmp-marker
Extracts marker objects from the Adobe Extensible Metadata Platform (XMPTM) file type.
Usage
var XmpMarker = require('xmp-marker');
var xmpMarker = new XmpMarker();
var xmpFile = __dirname +'/test/samples/three-markers.xmp';
xmpMarker.getMarkers(xmpFile)
.then(function(markers){
markers.forEach(function(marker, index){
console.log('marker #' + index);
console.log(' content: ' + marker.content);
console.log(' timecode: ' + marker.timecode);
});
});
For more usage details, see the tests found in the /test
folder. To execute the tests, install Mocha globally...
npm install mocha -g
... then run from the command line using NPM...
npm test
... or mocha directly from within the root of the source of this repo:
mocha