Struct npm_rs::NpmEnv [−][src]
pub struct NpmEnv(_);
Expand description
This struct is used to create the enviroment in which npm will execute commands.
NpmEnv
uses Command
so it takes all the env variables in your system.
After the environment is configured, use NpmEnv::init()
to start issuing commands to Npm
.
Example
use npm_rs::*; let npm = NpmEnv::default() .with_env("NODE_ENV", "production") .init();
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NpmEnv
impl !UnwindSafe for NpmEnv