ini/README.md

46 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2022-06-30 15:44:57 -07:00
# 📦 HyperTuner INI parser
2021-09-26 09:28:35 -07:00
2022-06-30 15:44:57 -07:00
![Lint and test](https://github.com/hyper-tuner/ini/actions/workflows/test.js.yml/badge.svg?branch=master)
[![CodeQL](https://github.com/hyper-tuner/ini/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/hyper-tuner/ini/actions/workflows/codeql-analysis.yml)
[![Maintainability](https://api.codeclimate.com/v1/badges/6037e4d75ed48df20016/maintainability)](https://codeclimate.com/github/hyper-tuner/ini/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/6037e4d75ed48df20016/test_coverage)](https://codeclimate.com/github/hyper-tuner/ini/test_coverage)
![License](https://img.shields.io/github/license/hyper-tuner/ini)
2021-09-26 09:28:35 -07:00
## Installation
Make sure you have registry specified in the `.npmrc` file:
```bash
@hyper-tuner:registry=https://npm.pkg.github.com
2021-09-26 09:28:35 -07:00
```
Authenticate to GitHub Packages:
[authenticating-to-github-packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages)
Proceed with the installation:
```bash
2022-06-30 15:44:57 -07:00
npm i --save @hyper-tuner/ini
2021-09-26 09:28:35 -07:00
```
2022-10-18 02:52:40 -07:00
## CLI capabilities
2022-10-18 03:14:42 -07:00
You can also run this package as a CLI tool.
2022-10-18 03:48:40 -07:00
First you need to authenticate to GitHub Packages:
2022-10-18 03:14:42 -07:00
```bash
2022-10-18 03:48:40 -07:00
npm login --scope=@hyper-tuner --registry=https://npm.pkg.github.com
> Username: USERNAME
> Password: TOKEN
> Email: PUBLIC-EMAIL-ADDRESS
2022-10-18 03:14:42 -07:00
```
No you can run the tool:
2022-10-18 02:52:40 -07:00
```bash
2022-10-18 03:14:42 -07:00
npx hyper-tuner/ini validate test/data/ini/202103.ini
2022-10-18 02:52:40 -07:00
```