diff --git a/website/docs/installation.md b/website/docs/installation.md index e25ebdb..db5fb54 100644 --- a/website/docs/installation.md +++ b/website/docs/installation.md @@ -110,7 +110,12 @@ jobs: - run: ./some_dotslash_file ``` -## cargo install +## Package managers + +DotSlash is available through several language- and platform-specific package +managers. + +### Cargo If you are familiar with the Rust toolchain, you can also build and install DotSlash using `cargo`: @@ -125,7 +130,7 @@ update any environment variables to get DotSlash to work. Though note that `cargo install` does not create a universal binary, so you may be better off [building from source](#build-from-source). -## Install from npm +### npm To use DotSlash in Node.js projects, you can install it as a dependency: @@ -153,6 +158,16 @@ const {spawnSync} = require('child_process'); spawnSync(dotslash, ['./some_dotslash_file'], {stdio: 'inherit']); ``` +### Scoop + +On Windows, DotSlash can be installed via [Scoop](https://scoop.sh): + +```shell +scoop install dotslash +``` + +Scoop will place `dotslash.exe` on your `PATH` automatically. + ## Build from source The short version of the build process is: