0.0.4 • Published 3 years ago

@bung87/media-meta v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

media-meta Build Status Npm Version npm: total downloads Types Dep license

Installation

yarn add media-meta

or

npm i --save media-meta

import { getAudioMetaData, getVideoMetaData, getVideoScreenshot, getFontMetaData } from '../src';

const path1 = path.join(__dirname, 'example/', 'file_example_MP3_1MG.mp3');
const path2 = path.join(__dirname, 'example/', 'big_buck_bunny_240p_1mb.mp4');
const path3 = path.join(__dirname, 'example/', 'OpenSans-Regular.ttf');

const a = await getAudioMetaData(path1);
const b = await getVideoMetaData(path2);
const c = await getVideoScreenshot({ inputPath: path2 });
const d = await getFontMetaData(path3);