IgniterJs.Parsers.CSS.Formatter (igniter_js v0.4.11)
View SourceThis module provides functions to check if a CSS file is formatted and to format CSS files. It interacts with the Native NIF (Native Implemented Functions) for performing the actual formatting and checking.
Summary
Functions
Checks if the provided CSS content or file is formatted.
Checks if the provided CSS content or file is formatted.
Functions
Checks if the provided CSS content or file is formatted.
This function returns the status of the formatting check.
Parameters
file_path_or_content: The CSS file path or content to check.type: The type of the input, either:contentor:path.
Examples
iex> IgniterJs.Parsers.Javascript.Formatter.is_formatted("path/to/file.js")
{:ok, :is_formatted, true}
Checks if the provided CSS content or file is formatted.
This function returns true if the content is formatted, and false
otherwise. The type can either be :content (default) or :path.
Parameters
file_path_or_content: The CSS file path or content to check.type: The type of the input, either:contentor:path.
Examples
iex> IgniterJs.Parsers.Javascript.Formatter.is_formatted?("path/to/file.js")
true