UNPKG

comment-value

Version:

Instruments a Node program and updates its comments with computed expression values

7 lines (5 loc) 176 B
function beautifyJavaScript (source) { const beautify = require('js-beautify').js_beautify return beautify(source, {indent_size: 2}) } module.exports = beautifyJavaScript