0.1.1 • Published 8 years ago

mod-meta v0.1.1

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

Tracker mod metadata for .mod .xm .s3m .it

Currently returns only title.

Installation

$ npm install mod-meta

Usage

var mm = require('mod-meta');

// sync
var mdata = mm.getModMetaSync('pathToMod');
mdata !== null
    ? console.log('Mod title: ', mdata.title)
    : console.log('Error');


// async
mm.getModMeta('pathToMod', function (error, mdata) {
    if (!error) console.log('Mod title: ', mdata.title);
});

Tests

$ npm test