file2lines
v0.0.2
Published
convert a file to array of lines/paras
Downloads
1
Readme
axios-elasticsearch
convert a file (autodetect encoding) to an array of lines/paras
Installation
npm i file2lines
Usage
import file2lines from "file2lines";
const lines = file2line("./filename") // remove blank lines
const lines = file2line("./filename", false) // retain blank lines
// will throw exception if unable to detect file encoding