atom-beautify/lib/langs/less-beautify.coffee

15 lines
307 B
CoffeeScript
Raw Normal View History

"use strict"
prettydiff = require("prettydiff")
module.exports = (text, options, callback) ->
args =
source: text
lang: "css"
mode: "beautify"
inchar: options.indent_character
insize: options.indent_size
output = prettydiff.api(args)
result = output[0]
callback result
result