file2lines

0.0.2 • Public • Published

axios-elasticsearch npm version

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

Readme

Keywords

Package Sidebar

Install

npm i file2lines

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

3.18 kB

Total Files

4

Last publish

Collaborators

  • mikeie