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

https://github.com/souvikns/ink-router-cli

A react-router style CLI parser for InkJS.
https://github.com/souvikns/ink-router-cli

cli nodejs react typescript

Last synced: about 1 year ago
JSON representation

A react-router style CLI parser for InkJS.

Awesome Lists containing this project

README

          




Ink-Router-Cli



GitHub license
GitHub license
DeepScan grade
npm

## ink-cli-parser

ink-cli-parser is a cli parser tool that is built just for
[ink](https://github.com/vadimdemedes/ink). You can pass in you custom ink help
component and error component.

## Table Of Contents

- [Getting Started](#getting-started)
- [Installation](#installation)
- [Usage](#usage)
- [Api reference](#api-reference)

## Getting Started

To install `ink-cli-parser`, ensure that you have Node.js >=10.
[Install nodejs from here](https://nodejs.org/en/)

### Installation

The easiest way to install `ink-cli-parser` is using NPM. If you have Node.js
installed, it is most likely that you have NPM installed as well

```
$ npm install ink-cli-parser
```

## Usage

```tsx
import React, { FC } from "react";
import { Router, Switch, Command } from "ink-cli-router";
import { render, Text } from "ink";

const Create = () => {
return {"Creating file"};
};

const App: FC<{ any }> = () => {
return (


} />


);
};

render();
```

![ss](https://github.com/Souvikns/ink-cli-parser/blob/main/ss.PNG)

---

## Api Reference
To read more about the API you can visit [here](https://ink-router-cli.onrender.com/)