What is metator
?
Getting information about video files from a torrent and local files.
Installation
npm i metator
Usage
Import the library in your code:
const metator = require('metator');
This is video/torrent?
metator.isvi('./bunny.m4v').then(res => {
console.log(res);
});
metator.isto('3652DB1AFBC5D414DBCAF5920F741FF93B1ED9E5').then(res => {
console.log(res);
});
metator.isvt('6B!@#$%^5B').then(res => {
console.log(res);
});
Get info from video/torrent
metator.info('./bunny.m4v').then(res => {
console.log(res);
});
metator.info('https://archive.org/download/Colgate-Comedy-Hour-S6E1/Colgate-Comedy-Hour-S6E1_archive.torrent').then(res => {
console.log(res);
});
metator.info('6B!@#$%^5B').then(res => {
console.log(res);
});
Running tests
npm test