mgf-parser

0.3.0 • Public • Published

mgf-parser

NPM version build status npm download

Parse an MGF file into a JSON.

Installation

$ npm i mgf-parser

Usage

parse(rawData[, options])

Parses the text input rawdata into a JSON.

import { readFileSync } from 'fs';
import { join } from 'path';

import parse from 'mgf-parser';

let rawData = readFileSync(
  join(__dirname, './data.mgf'),
  'utf8',
);

let result = parse(rawData);

// result is the parsed data (array of objects)

API Documentation

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.00latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.00
0.2.10
0.2.00
0.1.00

Package Sidebar

Install

npm i mgf-parser

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

13.2 kB

Total Files

7

Last publish

Collaborators

  • opatiny