Installation npm install txt-parser Usage const txtParser = require('txt-parser'); let result = txtParser.parseFile(filePath);