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

{
    "key": ".selector | method | method"
}

number

Converts the value to an integer.

{
    "key": ".selector | number"
}

float

Converts the value to a float number.

{
    "key": ".selector | float"
}

boolean

Converts the value to a boolean.

{
    "key": ".selector | boolean"
}

array

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

{
    "key": ".selector | array"
}

email

Parses email inside a value.

{
    "key": ".selector | email"
}

url

Parses url inside a value.

{
    "key": ".selector | url"
}

uppercase

Converts text to uppercase letters.

{
    "key": ".selector | uppercase"
}

lowercase

Converts text to lowercase letters.

{
    "key": ".selector | lowercase"
}

length

Returns the length of the string data.

{
    "key": ".selector | length"
}

Returns the length of the array data.

{
    "key": ".selector | array | length"
}

Last updated