Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipecrs/bindl
Download and extract binaries from compressed packages
https://github.com/felipecrs/bindl
binaries vscode
Last synced: 3 months 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T20:16:37.000Z (8 months ago)
- Last Synced: 2024-05-29T19:45:28.648Z (8 months 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.
[![ci](https://github.com/felipecrs/bindl/workflows/ci/badge.svg)](https://github.com/felipecrs/bindl/actions?query=workflow%3Aci)
[![Version](https://img.shields.io/npm/v/bindl.svg)](https://npmjs.org/package/bindl)
[![Downloads/week](https://img.shields.io/npm/dw/bindl.svg)](https://npmjs.org/package/bindl)
[![License](https://img.shields.io/npm/l/bindl.svg)](https://github.com/felipecrs/bindl/blob/master/package.json)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](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.cjs`.━━━ Examples ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Download binaries looking for the config file in the current directory
$ bindlDownload binaries looking for the config file at `./dir/bindl.config.cjs`
$ bindl --config ./dir/bindl.config.cjs
```You can find an example of a config file [here](./test/res/bindl.config.cjs).
## 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.
### `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 architecture.
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.