A Rust package to learn Rust and use/install npm packages.
let npm = Package::new("npm", Some("npm"));
``` let installpackage = |package: &packagejs::Package| -> Result<()> { match package.installed() { Ok() => { println!("Package {} allready installed", &package.name); Ok(()) } Err() => { println!("Package {} not installed, installing now", &package.name); package.install().expect("Could not install pacakge"); Ok(()) } } };
install_package(&package_js::Package::new("typescript", None))?;
```
let buidler = Package::new("@nomiclabs/buidler", Some("buidler"));
assert!(buidler.installed().is_ok());
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details