# nv-cli-ictx

> nv-cli-ictx =============== - nv-cli-ictx - cli tool, generate a ctx for lex-var, its a simple version of nv-macro-lexvar

Latest version **1.0.12** (published 2022-03-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install nv-cli-ictx
pnpm add nv-cli-ictx
yarn add nv-cli-ictx
bun add nv-cli-ictx
```

Provides the command `nv_cli_ictx`.

## 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.0.12 |
| Published | 2022-03-25 |
| First published | 2022-03-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ihgazni2 |

## Links

- npm: https://www.npmjs.com/package/nv-cli-ictx
- npm.io page: https://npm.io/package/nv-cli-ictx

## Dependencies (1)

- [nv-string-basic](https://npm.io/package/nv-string-basic.md) ^1.0.35

## Recent versions

- 1.0.12 (latest) — 2022-03-25

## README

nv-cli-ictx
===============
- nv-cli-ictx    
- cli tool, generate a ctx for lex-var, its a simple version of nv-macro-lexvar 


install
=======
- npm install nv-cli-ictx -g 

usage
=====

        Usage: nv_cli_ictx [options]
        Options:
            -c, --ctxname            ctxname
            -p, --props              property desciptions
            -i, --indent             indent
            -f, --format_help        the suffix format help
            -h, --help               usage



example
-------

            nv-cli-ictx# nv_cli_ictx -c ictx -p a@gtst b@gtst c@gtst




### output



    let ictx = {
        get a()  {return(a)},
        set a(v) {a =v},
        get b()  {return(b)},
        set b(v) {b =v},
        get c()  {return(c)},
        set c(v) {c =v},
        "#": -1,
        _rtrn()           {ictx["#"]=0},
        _thrw()           {ictx["#"]=1},
        _break()          {ictx["#"]=2},
        _continue()       {ictx["#"]=3},
        get completion_() {return(ictx["#"])}
    }



### copy AND paste it

        
        const _while = (ictx) => {
            while(ictx.a<5) {
               ictx.b = ictx.b+ictx.c;
               ictx.a = ictx.a+1
               ictx._rtrn()
            }
            return(ictx); 
        }

        function tst() {
            ///
            let a=0;
            let b=20;
            let c=30;
            ///-------pre
            let ictx = {
                get a()  {return(a)},
                set a(v) {a =v},
                get b()  {return(b)},
                set b(v) {b =v},
                get c()  {return(c)},
                set c(v) {c =v},
                "#": -1,
                _rtrn()           {ictx["#"]=0},
                _thrw()           {ictx["#"]=1},
                _break()          {ictx["#"]=2},
                _continue()       {ictx["#"]=3},
                get completion_() {return(ictx["#"])}
            }
            ////----handler

            _while(ictx);
            
            ////----post
            if(ictx.completion_===0) {
                return(b)
            }
        }

        /*
        > tst()
        170
        >

        */


LICENSE
=======
- ISC

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