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

    Function transformFile

    • transform css file

      Parameters

      • file: string

        url or path

      • options: TransformOptions = {}
      • asStream: boolean = false

        load file as stream

      Returns Promise<TransformResult>

      Error file not found

      Example:


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

      // remote file
      let result = await transformFile('https://docs.deno.com/styles.css');
      console.log(result.code);

      // local file
      result = await transformFile('./css/styles.css');
      console.log(result.code);