# tec_node_variables

> This is a module for the node args. These are parsed into an object or an array of objects

Latest version **1.1.0** (published 2022-08-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install tec_node_variables
pnpm add tec_node_variables
yarn add tec_node_variables
bun add tec_node_variables
```

## 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 | 1.1.0 |
| Published | 2022-08-19 |
| First published | 2022-08-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | TeKO |
| Maintainers | teko |
| Keywords | node, args, variables, tec, object, json |

## Links

- npm: https://www.npmjs.com/package/tec_node_variables
- npm.io page: https://npm.io/package/tec_node_variables

## 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

- 1.1.0 (latest) — 2022-08-19
- 1.0.3 — 2022-08-19
- 1.0.2 — 2022-08-18
- 1.0.1 — 2022-08-18
- 1.0.0 — 2022-08-18

## README

# tecNodeVariables

This is a module for the node args. These are parsed into an object or an array of objects

## Use
```
    npm i --save tecNodeVariables

    let tecNode = require("tecNodeVariables");

    // Here you can either specify an object with the variable keys or the default is set -> ["-s", "-w"]
    const tec = new tecNode(["-s", "-w", "-r"]);

    // Add a variable to the array
    tec.addVariable("-i")

    // Overwrites all existing variables
    tec.setVariables(["-i", "-h"]);

    // To get all variables
    let variables = tec.getVariables();

    // Search returns a object
    let test = tec.search("-v")
    console.log("test: ", test);
    // Example: { '-v' : 'test' }

    or

    let test = tec.search()
    console.log("test: ", test);
    // Example: [{ '-v' : 'test' }, { '-i', 'test2'}]
```

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