# tarikcurto.node-terminal

> Reactive terminal for NodeJS with async and sync support.

Latest version **2.0.2** (published 2017-04-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install tarikcurto.node-terminal
pnpm add tarikcurto.node-terminal
yarn add tarikcurto.node-terminal
bun add tarikcurto.node-terminal
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2017-04-17 |
| First published | 2017-04-05 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | tarikcurto |
| Maintainers | tarikcurto |
| Keywords | system, js |

## Links

- npm: https://www.npmjs.com/package/tarikcurto.node-terminal
- Repository: https://github.com/tarikcurto/node-terminal
- Homepage: https://github.com/tarikcurto/node-terminal#readme
- Issues: https://github.com/tarikcurto/node-terminal/issues
- npm.io page: https://npm.io/package/tarikcurto.node-terminal

## Dependencies (5)

- [rxjs](https://npm.io/package/rxjs.md) ^5.2.1-smooth
- [typings](https://npm.io/package/typings.md) ^2.1.0
- [@types/rx](https://npm.io/package/@types/rx.md) ^4.1.1
- [typescript](https://npm.io/package/typescript.md) ^2.2.2
- [@types/node](https://npm.io/package/@types/node.md) ^7.0.12

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.0.2 (latest) — 2017-04-17
- 2.0.1 — 2017-04-08
- 2.0.0 — 2017-04-08
- 1.1.1 — 2017-04-05

## README

Welcome to **node-terminal**
===================


Node-terminal is an open source deploy for execute basic and advanced **commands with node JS**.

Current version is developed under **TypeScript OOP**, has support for **asynchronous and synchronous** process.

Is based in reactive programming with **RxJS framework** and is able to **interact with I/O buffers of session**.


Let's go to develop!
-------------


- First, we need **node-terminal**:

```
npm install tarikcurto.node-terminal
```

```
git clone --branch "2.0.x" https://github.com/tarikcurto/node-terminal.git
```


- Next step is **import module** to JS or TypeScript file:
```
const CommandService =  require('tarikcurto.node-terminal').CommandService;
```
```
import {CommandService} from "tarikcurto.node-terminal";
import {ExecutionService} from "tarikcurto.node-terminal";
import {SessionExecutionService} from "tarikcurto.node-terminal";
```


- **Instance** service:
```
let commandService = new CommandService();
```

- **Deploy** your query:
```
let commandService = new CommandService();
commandService.nameCommandService.nameCommandData = {value: "ipconfig"};
commandService.argumentCommandService.argumentCommandData.push({key: "/all"});
```

- **Execute** your query:
```
let executionService:ExecutionService = commandService.instanceExecution();
let sessionExecutionService: SessionExecutionService = executionService.executeAsync();
```

- And finally,subscribe to **events** of terminal (optional):
```
sessionExecutionService.mainEventList.subscribeOnCloseSessionEvent((data)=>{
    console.log(data.fullOutput);
});
```

For bugs
-------------

- You can open a issue on [tarikcurto/node-terminal issue](https://github.com/tarikcurto/node-terminal/issues/new).

About me
-------------

- I am a passionate developer of 20 years that currently lives in Spain. 
-  You can contact me through [centro.tarik@live.com](mailto:centro.tarik@live.com)!

---
_Source: https://npm.io/package/tarikcurto.node-terminal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
