Module colorizer.utils

Helper utils

Functions

byte_is_alphanumeric (byte) Obvious.
byte_is_hex (byte) Obvious.
byte_is_valid_colorchar (byte) Valid colorchars are alphanumeric and - ( tailwind colors )
count (str, pattern) Count the number of character in a string
get_last_modified (path) Get last modified time of a file
merge (...) Merge two tables.
parse_hex (byte) Obvious.
watch_file (path, callback, ...) Watch a file for changes and execute callback


Functions

byte_is_alphanumeric (byte)
Obvious.

Parameters:

  • byte number

Returns:

    boolean
byte_is_hex (byte)
Obvious.

Parameters:

  • byte number

Returns:

    boolean
byte_is_valid_colorchar (byte)
Valid colorchars are alphanumeric and - ( tailwind colors )

Parameters:

  • byte number

Returns:

    boolean
count (str, pattern)
Count the number of character in a string

Parameters:

  • str string
  • pattern string

Returns:

    number
get_last_modified (path)
Get last modified time of a file

Parameters:

  • path string: file path

Returns:

    number|nil: modified time
merge (...)
Merge two tables.

todo: Remove this and use vim.tbl_deep_extend

Parameters:

  • ...

Returns:

    table
parse_hex (byte)
Obvious.

Parameters:

  • byte number

Returns:

    number
watch_file (path, callback, ...)
Watch a file for changes and execute callback

Parameters:

  • path string: File path
  • callback function: Callback to execute
  • ... table: params for callback

Returns:

    function|nil
generated by LDoc 1.4.6 Last updated - February