Methods

Muninn includes some helper methods. A list of them is below.

  • number

  • float

  • boolean

  • array

  • email

  • url

  • uppercase

  • lowercase

  • length

Syntax

{
    "key": {
        "selector": ".selector",
        "methods": ["method", "method"]
    }
}

or use this shortcut

number

Converts the value to an integer.

float

Converts the value to a float number.

boolean

Converts the value to a boolean.

array

Collects the values of all elements of the given selector in an array.

email

Parses email inside a value.

url

Parses url inside a value.

uppercase

Converts text to uppercase letters.

lowercase

Converts text to lowercase letters.

length

Returns the length of the string data.

Returns the length of the array data.

Last updated