https://github.com/felipecrs/bindl
Download and extract binaries from compressed packages
https://github.com/felipecrs/bindl
binaries vscode
Last synced: 7 days ago
JSON representation
Download and extract binaries from compressed packages
- Host: GitHub
- URL: https://github.com/felipecrs/bindl
- Owner: felipecrs
- Created: 2020-06-29T00:31:04.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T20:16:37.000Z (about 1 year ago)
- Last Synced: 2024-05-29T19:45:28.648Z (about 1 year ago)
- Topics: binaries, vscode
- Language: TypeScript
- Homepage:
- Size: 2.09 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# bindl
Download and extract binaries from compressed packages.
[](https://github.com/felipecrs/bindl/actions?query=workflow%3Aci)
[](https://npmjs.org/package/bindl)
[](https://npmjs.org/package/bindl)
[](https://github.com/felipecrs/bindl/blob/master/package.json)
[](https://conventionalcommits.org)
[](https://github.com/semantic-release/semantic-release)## Usage
```sh-session
$ npm install --global bindl$ bindl --help
Downloads and extracts binaries from compressed packages using a config file━━━ Usage ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
$ bindl
━━━ Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-c,--config #0 Path to the config file
━━━ Details ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The config will be read from any valid config file in the current directory. The
configuration file can be defined using all the extensions and names accepted by
**cosmiconfig** such as `bindl.config.js`.━━━ Examples ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Download binaries looking for the config file in the current directory
$ bindlDownload binaries looking for the config file at `./dir/bindl.config.js`
$ bindl --config ./dir/bindl.config.js
```You can find an example of a config file [here](./test/res/bindl.config.js).
## Environment variables
When called without any environment variables, `bindl` downloads all packages from the config file, not matter the platform or architecture.
However, some environment variables can be used to tweak the behavior of `bindl`:
### `BINDL_SKIP`
When the `BINDL_SKIP` environment variable is set to a truthy like `1` or `true`, `bindl` will skip downloading anything.
### `BINDL_CURRENT_PLATFORM`
When the `BINDL_CURRENT_ONLY` environment variable is set to a truthy like `1` or `true`, `bindl` will only download the packages that match the current platform and architecture.
### `npm_config_arch`
When the `npm_config_arch` environment variable is set, `bindl` will only download the packages that match the given architecture for the current platform.
For example, if you set `npm_config_arch=x64` and you are running on Linux, `bindl` will only download the packages that match the `linux` platform and the `x64` architecture, skipping all other packages.