Skip to content
JaviertINC edited this page Nov 23, 2025 · 1 revision

jtTransform

Aquí hay varias funciones útiles para transformar distintos tipos de datos.

Funciones

  • numberToLetter: Convierte un número a su representación en letras.
  • letterToNumber: Convierte una letra a su representación numérica.
  • size
    • format: Formatea un tamaño en un string legible.
    • unformat: Convierte un string legible a un tamaño.
  • nato
    • format: Formatea un texto al alfabeto NATO.
    • unformat: Convierte un string en formato NATO a texto normal.
  • morse
    • format: Formatea un texto al alfabeto Morse.
    • unformat: Convierte un string en formato Morse a texto normal.
  • braille
    • format: Formatea un texto al alfabeto Braille.
    • unformat: Convierte un string en formato Braille a texto normal.
  • date
    • weekDay: Convierte una fecha a su nombre de día de la semana.
    • month: Convierte una fecha a su nombre de mes.
  • color
    • toRGB: Convierte un color en formato hexadecimal a RGB.
    • toRGBA: Convierte un color en formato hexadecimal a RGBA.
    • toHex: Convierte un color en formato RGB a hexadecimal.
    • toCMYK o toCMYB: Convierte un color en formato RGB a CMYK o CMYB.
    • toAll: Convierte un color en formato hexadecimal a todos los formatos.

Estructura

flowchart LR
    n1["jtTransform"] --> n2["numberToLetter"] & n3["letterToNumber"] & n4["size"] & n5["nato"] & n6["morse"] & n7["braille"] & n8["date"] & n9["color"]
    n4 --> n10["format"] & n11["unformat"]
    n5 --> n12["format"] & n13["unformat"]
    n6 --> n14["format"] & n15["unformat"]
    n7 --> n16["format"] & n17["unformat"]
    n8 --> n18["weekDay"] & n19["month"]
    n9 --> n20["toRGB"] & n21["toRGBA"] & n22["toHex"] & n23["toCMYK | toCMYB"] & n24["toAll"]

    n12@{ shape: rect}
    n13@{ shape: rect}
    n14@{ shape: rect}
    n15@{ shape: rect}
    n16@{ shape: rect}
    n17@{ shape: rect}
Loading

Clone this wiki locally