easyjs_utils 0.1.0

easyjs to JS/wasm compiler.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod version;
pub mod type_of;
pub mod h;
pub mod reader;
pub mod js_helpers;
pub mod input;
pub mod ej_config;
pub mod sanatize;

use std::env;
use std::path::PathBuf;

/// Get the path of our executable.
pub fn get_exe_dir() -> Option<PathBuf> {
    env::current_exe()
        .ok()
        .and_then(|path| path.parent().map(|p| p.to_path_buf()))
}