An npm module that streams your data for you.
-
Efficiently create a data stream by calling a single function.
-
Let DataParser do all the heavy lifting!
Install locally for any project:
npm install @sidarcidiacono/dataparser --save
Note: --save is the default behavior, and is provided simply for clarity.
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!