j2c-importer
Version:
Turn CSS into J2C source objects.
12 lines (10 loc) • 422 B
JavaScript
module.exports.id = function (x) {return x}
module.exports.beautifyOptions = function (options) {
var indent = (options || {}).indent == null ? " " : options.indent
if (!/^(\\t|\t| +)$/.test(indent)) throw new Error("inconsistent indentation, please use tabs or spaces, not mixed")
if (indent === '\\t') indent = '\t'
return {
indent_char: indent[0],
indent_size: indent.length
}
}