muninn
GitHubExtensionWope
  • Introduction
  • Config
    • Basic
    • Selector
    • Array
    • Attribute
    • Type
    • Regex
    • Transform
    • Array Transform
    • Exist
    • Schema
    • Trim
    • Initial
    • Fill
    • HTML
    • Methods
Powered by GitBook
On this page

Was this helpful?

  1. Config

Basic

About Config

The config is kept as an object. In this way, it can be stored in a file in JSON format, but it prevents some advanced features from being used. It is recommended to use it as a javascript object to access all the features of Muninn.

type Config = {
    [key: string]: Selector | SelectorConfig;
}
type Selector = string;
type SelectorConfig = {
  selector?: Selector;
  html?: boolean;
  attr?: string;
  type?: string;
  trim?: boolean;
  exist?: boolean;
  transform?: Function;
  arrayTransform?: Function;
  condition?: Function;
  methods?: string[];
  regex?: RegexConfig;
  initial?: any,
  fill?: any,
  schema?: {
    [key: string]: SelectorConfig;
  };
};

PreviousIntroductionNextSelector

Last updated 2 years ago

Was this helpful?