read-text-file
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

read-text-file

handles and strips byte order marks when reading a text file

npm install read-text-file --save
var readTextFile = require('read-text-file');
 
var contentsPromise = readTextFile.read('path/to/file.txt');
var contents = readTextFile.readSync('path/to/file.txt');

Package Sidebar

Install

npm i read-text-file

Weekly Downloads

1,393

Version

1.1.0

License

MIT

Last publish

Collaborators

  • matgr1