// build a command to run `npm view` with json output
build a command to run `npm view` with json output
build a command to run ` npm view ` with json output
fn npm_view_command_for(name: &str, version: &str, session: &mut Session) -> Fallible<ToolCommand> {
    let args = vec![
        OsString::from("view"),
        OsString::from("--json"),
        OsString::from(format!("{}@{}", name, version)),
    ];
    run::npm::command(args, session)
}
fn npm_view_command_for ( name : & str , version : & str , session : & mut Session ) -> Fallible < ToolCommand > { let args = vec ! [ OsString from ( " " ) OsString from ( " " ) OsString from ( format ( " " name version ) ) ] ; run :: npm :: command ( args , session ) }
build a command to run `npm view` with json output
build a command to run ` npm view ` with json output
name
&str
version
&str
session
&mut Session