How to use the cssbeautifier.default_options function in cssbeautifier

To help you get started, we’ve selected a few cssbeautifier examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github beautify-web / js-beautify / python / test-perf-cssbeautifier.py View on Github external
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import io
import os
import copy
import cssbeautifier
options = cssbeautifier.default_options()
options.wrap_line_length = 80
data = ''


def beautifier_test_github_css():
    cssbeautifier.beautify(data, options)


def report_perf(fn):
    import timeit
    iter = 5
    time = timeit.timeit(
        fn +
        "()",
        setup="from __main__ import " +
        fn +
github akalongman / sublimetext-codeformatter / codeformatter / cssformatter.py View on Github external
def __init__(self, formatter):
        self.formatter = formatter
        self.options = cssbeautifier.default_options()

        # parse custom options from settings file
        self.fill_custom_options(formatter.settings.get('codeformatter_css_options'))

cssbeautifier

CSS unobfuscator and beautifier.

MIT
Latest version published 3 months ago

Package Health Score

61 / 100
Full package analysis

Similar packages