This library contains methods to beautify an excel formula. This library also contains functions to convert an excel formula to JavaScript (ECMAScript) or C# and python.
Correct variant:
var formula = require('excel-formula');
var formattedFormula = formula.formatFormula('IF(1+1=2,"true","false")');
console.log(formattedFormula); // incorrect var was
U have a mistake in this block in the README:
Correct variant: var formula = require('excel-formula'); var formattedFormula = formula.formatFormula('IF(1+1=2,"true","false")'); console.log(formattedFormula); // incorrect var was