[Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom), uses [`graceful-fs`](https://github.com/isaacs/node-graceful-fs), and returns Promises.
npm install load-text-fileStrips UTF-8 BOM, uses graceful-fs, and returns Promises.
``sh`
npm install --save load-text-file
`js
import { loadTextFile } from 'load-text-file'
const text = await loadTextFile('foo.txt')
console.log(text)
//=> Hello, World!
`
`js
import { loadTextFileSync } from 'load-text-file'
const text = loadTextFileSync('foo.txt')
console.log(text)
//=> Hello, World!
`
- path (string | Buffer | URL, required)Promise
- returns - a promise for the text content
- path (string | Buffer | URL, required)string` - the text content
- returns
- load-json-file - Read and parse a JSON file