Text Analyser is lightweight library to analyse basic informations about text files like number of words, signs, spaces and empty lines.
To use this module you need to install latest version of Node on your computer.
npm install text-analyser
import { analyse } from "text-analyser";
const pathToTxtFile = "txtFile.txt";
const informationsAboutTxtFile = analyse(pathToTxtFile);
Variable informationsAboutTxtFile shoud look like this:
{ signs: X, spaces: X, words: X, lines: X, emptyLines: X, notEmptyLines: X }