check: Verify the extension of a file

check_is_cssR Documentation

Verify the extension of a file

Description

Verify the extension of a file

Usage

check_is_css(file)

check_is_html(file)

check_is_js(file)

check_is_json(file)

Arguments

file

path to a file

Value

a boolean

Examples

if (FALSE){
  check_is_css("path/to/css")
  check_is_html("path/to/html")
  check_is_js("path/to/js")
  check_is_json("path/to/json")
}

ColinFay/minifyr documentation built on June 29, 2023, 3:39 a.m.