Hi, welcome in my npm package to convert your text art !
The convert edit the file, I doesn't create a new file with the result.
- Clone the repertory :
git clone https://github.com/haerphi/NodeEscapeCharacter.git
- Move in the folder
- Install depedencies :
npm i
ornpm install
- Convert your file : `node . PathToYourFile``
- Enjoy
A little example:
const escapecharater = require('escapecharacter');
//convert will return a string
let test = escapecharater.convert('./textArt.txt');
console.log(test);
//convertFile will modify the file
escapecharater.convertFile('./textArt.txt');
If you check the source code of convert, you'll notice it just use
fs.readFileSync(path, 'utf8');