read_script_file

Function read_script_file 

Source
pub fn read_script_file<P: AsRef<Path>>(path: P) -> Result<String, JSError>
Expand description

Read a script file from disk and decode it into a UTF-8 Rust String. Supports UTF-8 (with optional BOM) and UTF-16 (LE/BE) with BOM.