Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

loadConfig

If you write a tool on top of svgo you might need a way to load svgo config.

You can also specify relative or absolute path and customize current working directory.

function loadConfig(configFile: string, cwd?: string): Promise<Config>;
function loadConfig(configFile?: null, cwd?: string): Promise<Config | null>;
§
loadConfig(configFile: string, cwd?: string): Promise<Config>
[src]

If you write a tool on top of svgo you might need a way to load svgo config.

You can also specify relative or absolute path and customize current working directory.

§Parameters

§
configFile: string
[src]
§
cwd?: string optional
[src]

§Return Type

§
Promise<Config>
[src]
§
loadConfig(configFile?: null, cwd?: string): Promise<Config | null>
[src]

§Parameters

§
configFile?: null optional
[src]
§
cwd?: string optional
[src]

§Return Type

§
Promise<Config | null>
[src]