1.5.5 • Published 2 years ago

to-read-file v1.5.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Getting Started

npm install to-read-file

Usage

readFile(source?: string | fg.Pattern[], options?: Options): Buffer
readFiles(source?: string | fg.Pattern[], options?: Options): Buffer

a.json

{ "name": "a" }

b.json

{ "name": "b" }
import readFile, { readFiles } from 'to-read-file'

readFile('a.*').toString()
// { "name": "a" }

readFiles('*.json').toString()
// { "name": "a" },{ "name": "b" }

Options

Inherited from fast-glob options

{
    cwd: process.cwd()
}

With additional options:

{
    encoding?: null
    flag?: string
}
1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago