jonschlinkert/read-file

jonschlinkert/read-file

Releases0
Stars9
Lightweight methods for reading from the file system, async and sync, with extras for stripping byte order marks and normalizing newlines.

Linked projects

Thin wrapper around fs.readFile and fs.readFileSync that also strips byte order marks when `utf8` encoding is chosen. Also optionally replaces windows newlines with unix newlines.