var cml_html_converter = require('cml-html-converter'); var result = cml_html_converter('line1\n\tline2'); console.log(result);