wasm-pack 0.1.0

pack up the wasm and publish it to npm!
Documentation
use std::fs::File;
use std::io::Read;

use failure::Error;

pub fn read_file(path: &str) -> Result<String, Error> {
    let mut file = File::open(path)?;
    let mut contents = String::new();
    file.read_to_string(&mut contents)?;

    Ok(contents)
}