inav-dump-parser

1.0.2 • Public • Published

INav dump parser library

This library helps you parse into objects all the entries from an INav dump.

Example usage

First we need to load the content of the dump to memory. Assuming you're using Node.js you can use readFileSync from fs package:

const lines = fs.readFileSync('./data/settings.txt').toString().split('\n')

Then you just need to instantiate the SettingsParser and call it's parse(lines) method:

import { SettingsParser } from 'inav-dump-parser'

const lines = fs.readFileSync('./data/settings.txt').toString().split('\n')
const items = new SettingsParser().parse(lines)

Readme

Keywords

Package Sidebar

Install

npm i inav-dump-parser

Weekly Downloads

2

Version

1.0.2

License

Apache-2.0

Unpacked Size

18.5 kB

Total Files

3

Last publish

Collaborators

  • padcom