Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 704 Bytes

File metadata and controls

23 lines (17 loc) · 704 Bytes

MecuUtils

Utility for MeCu


How to use

Require this package via npm, then:

const MecuUtils = require('mecu-utils');

IMPORTANT: This package uses Destructuring assignments. These are supported out of the box only starting with Node V6. You can check compatibility through this table.

After that you can use the following functions:

Parse text file entry.

const fs = require('fs');

fs.readFile(someFile.path, 'utf8', function (error, data) {
  var entries = MecuUtils.parse(data);
}