Search


Search something to see results

transformFile

transformFile: (
    file: string,
    options?: TransformOptions,
    asStream?: boolean,
) => Promise<TransformResult> = ...

Transform css file

Type Declaration

Use transform() instead.

Error file not found

Example:


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

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

// local file
result = await transform({file: './css/styles.css'});
console.log(result.code);