Skip to content

removeAllOptions()

Popii


Popii / removeAllOptions

removeAllOptions(content, pluginName): string

Defined in: migrations.ts:109

Strips the entire options argument from a plugin call that no longer accepts one. Turns pluginName({ ... }) into pluginName(), regardless of how many lines the options object spans.

string

string

string

// Strips all options from rssPlugin({ feeds: [...] })
removeAllOptions(content, "rssPlugin")