Lumesh Into Module

wiki libs

Lumesh Built-in Function Documentation: Into Module

Basic Data Types

You can view the types by executing the type command.

  1. boolean

    • Function: Converts to boolean
    • Parameters:
      • value: Any - Any type of value
    • Returns: Boolean
    • Example:
boolean 42  # Returns True
  1. str

    • Function: Converts to string
    • Parameters:
      • value: Any - Any type of value
    • Returns: String
    • Example:
str 42  # Returns "42"
  1. int

    • Function: Converts to integer
    • Parameters:
      • value: Integer | Float | String
    • Returns: Integer
    • Example:
int "100"  # Returns 100
  1. float

    • Function: Converts to float
    • Parameters:
      • value: Integer | Float | String
    • Returns: Float
    • Example:
float "100"  # Returns 100
  1. filesize

    • Function: Converts to file size
    • Parameters:
      • value: Integer | Float | String | Filesize
    • Returns: Filesize
    • Example:
filesize "3000M"  # Returns 2.93G
  1. time

    Same as time.parse

    • Function: Converts to time
    • Parameters:
      • value: String
    • Returns: DateTime
    • Example:
time "2025-1-2"  # Returns a DateTime type

Complex Data Types

  1. table

    Same as parse.cmd

  2. json

    Same as parse.to_json

  3. toml

    Same as parse.to_toml

  4. csv

    Same as parse.to_csv