Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gethinode/yq-bin

Binary wrapper for yq
https://github.com/gethinode/yq-bin

Last synced: about 2 months ago
JSON representation

Binary wrapper for yq

Awesome Lists containing this project

README

        

# yq-bin


Binary wrapper for yq




npm package


Last commit


Issues


Pulls


License


About
Prerequisites
Installation
Credits
License

## About

[yq][yq_repo] is a lightweight and portable command-line YAML, JSON, and XML processor. It is written and maintained by [Mike Farah][mikefarah]. Inspired by [hugo-bin][hugo-bin], this package publishes yq as [npm][npm] binary.

## Prerequisites

This package requires `npm`. You are recommended to install [Node.js][nodejs], which includes `npm`.

## Installation

Run the following command to install `yq-bin` as development dependency in your current project.

```bash
npm install @gethinode/yq-bin --save-dev
```

## Usage

Use `npx yq` to run the embedded `yq` binary. When `npx` is unavailable, you can run `./node_modules/.bin/yq` instead.

## Notes

This package is derived from [fenneclab/hugo-bin][hugo-bin]. The underlying code does not recognize computers with Apple Silicon properly. Instead, an Intel-based binary is used, which may affect performance.

## Credits

This package is based on the following repository:

- [fenneclab/hugo-bin][hugo-bin]

## License

The `yq-bin` codebase is released under the [MIT license][license].

[nodejs]: https://nodejs.org
[npm]: https://www.npmjs.com
[hugo-bin]: https://github.com/fenneclab/hugo-bin
[mikefarah]: https://github.com/mikefarah
[yq_repo]: https://github.com/mikefarah/yq

[license]: https://github.com/gethinode/hinode/blob/main/LICENSE