@tbela99/css-parser
    Preparing search index...

    Function transform

    • transform css

      Parameters

      • css: string | ReadableStream<string>
      • options: TransformOptions = {}

        Example:


        import {transform} from '@tbela99/css-parser/web';

        // css string
        let result = await transform(css);
        console.log(result.code);

        // using readable stream
        const response = await fetch('https://docs.deno.com/styles.css');
        result = await transform(response.body, {beautify: true});

        console.log(result.code);

      Returns Promise<TransformResult>