fn parse_node_root_dir(node_gyp_output: &str) -> &str {
        let node_root_dir_flag_pattern = "'-Dnode_root_dir=";
        let node_root_dir_start_index = node_gyp_output
            .find(node_root_dir_flag_pattern)
            .map(|i| i + node_root_dir_flag_pattern.len())
            .expect("Couldn't find node_root_dir in node-gyp output.");
        let node_root_dir_end_index = node_gyp_output[node_root_dir_start_index..]
            .find('\'')
            .unwrap()
            + node_root_dir_start_index;
        &node_gyp_output[node_root_dir_start_index..node_root_dir_end_index]
    }
// The node-gyp output includes the root directory of shared resources
// for the Node installation in a string that looks like:
//
//     '-Dnode_root_dir=C:\\Users\\dherman\\.node-gyp\\8.3.0'
The node-gyp output includes the root directory of shared resources
for the Node installation in a string that looks like.


The node - gyp output includes the root directory of shared resources for the Node installation in a string that looks like .
fn parse_node_root_dir(node_gyp_output: &str) -> &str {
        let node_root_dir_flag_pattern = "'-Dnode_root_dir=";
        let node_root_dir_start_index = node_gyp_output
            .find(node_root_dir_flag_pattern)
            .map(|i| i + node_root_dir_flag_pattern.len())
            .expect("Couldn't find node_root_dir in node-gyp output.");
        let node_root_dir_end_index = node_gyp_output[node_root_dir_start_index..]
            .find('\'')
            .unwrap()
            + node_root_dir_start_index;
        &node_gyp_output[node_root_dir_start_index..node_root_dir_end_index]
    }
fn parse_node_root_dir ( node_gyp_output : & str ) -> & str { let node_root_dir_flag_pattern = " " ; let node_root_dir_start_index = node_gyp_output . find ( node_root_dir_flag_pattern ) . map ( | i | i + node_root_dir_flag_pattern . len ( ) ) . expect ( " " ) ; let node_root_dir_end_index = node_gyp_output [ node_root_dir_start_index .. ] . find ( '\'' ) . unwrap ( ) + node_root_dir_start_index ; & node_gyp_output [ node_root_dir_start_index .. node_root_dir_end_index ] }
The node-gyp output includes the root directory of shared resources
for the Node installation in a string that looks like:
The node - gyp output includes the root directory of shared resources for the Node installation in a string that looks like :
node_gyp_output
&str