1.0.1 • Published 3 years ago

@sidarcidiacono/dataparser v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

📑 DataParser

NPM version NPM downloads Build Status

An npm module that streams your data for you.

Features

  • Efficiently create a data stream by calling a single function.

  • Let DataParser do all the heavy lifting!

Installation

Install locally for any project:

npm install @sidarcidiacono/dataparser --save

Note: --save is the default behavior, and is provided simply for clarity.

Usage

DataParser provides the streamData method. To get started, you can require it:

const { streamData } = require('dataparser')

Then, you just need to provide your:

  • filePath as a string
  • mode

Example:

data = streamData('/path/to/data.txt', 'utf8')

And you're done! That's all there is to it!