d11 theme
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
564 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.readLines = void 0;
const cspell_io_1 = require("cspell-io");
const iterableIteratorLib_1 = require("./iterableIteratorLib");
async function readLines(filename, encoding = 'utf8') {
try {
const content = await cspell_io_1.readFile(filename, encoding);
return iterableIteratorLib_1.toIterableIterator(content.split(/\r?\n/g));
}
catch (e) {
return Promise.reject(e);
}
}
exports.readLines = readLines;
//# sourceMappingURL=fileReader.js.map