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

    Function parseFile

    • parse css file

      Parameters

      • file: string

        url or path

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

        load file as stream

      Returns Promise<ParseResult>

      Error file not found

      Example:


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

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

      // local file
      result = await parseFile('./css/styles.css');
      console.log(result.ast);