Use js-beautify instead of pretty
This commit is contained in:
parent
b5fbd2b00d
commit
1c5913b29f
1
package-lock.json
generated
1
package-lock.json
generated
@ -9,6 +9,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"csvtojson": "^2.0.10",
|
||||
"js-beautify": "^1.13.5",
|
||||
"pretty": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -14,6 +14,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"csvtojson": "^2.0.10",
|
||||
"js-beautify": "^1.13.5",
|
||||
"pretty": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* eslint-disable array-callback-return */
|
||||
// Modules
|
||||
const pretty = require('pretty');
|
||||
const beautify = require('js-beautify').html;
|
||||
const csv = require('csvtojson');
|
||||
|
||||
// Configuration
|
||||
@ -90,7 +90,7 @@ function generateTableBody(table, data) {
|
||||
function displayMarkup() {
|
||||
const tableCode = document.querySelector('table').outerHTML;
|
||||
const markup = document.getElementById('markup');
|
||||
markup.innerText = pretty(tableCode);
|
||||
markup.innerText = beautify(tableCode);
|
||||
}
|
||||
|
||||
function makeTable(csvString) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user