# nv-cli-fctx

> nv-cli-fctx ===================== - nv-cli-fctx - simple cli tool, creat some templates for single-param-only style programming

Latest version **1.0.2** (published 2022-03-26) · ISC license · 0 weekly downloads

## Install

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

Provides the command `nv_cli_fctx`.

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

## Links

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

## Dependencies (2)

- [nv-cli-basic](https://npm.io/package/nv-cli-basic.md) ^1.0.6
- [nv-facutil-basic](https://npm.io/package/nv-facutil-basic.md) ^1.0.90

## Recent versions

- 1.0.2 (latest) — 2022-03-26

## README

nv-cli-fctx
=====================
- nv-cli-fctx     
- simple cli tool,  creat some templates for single-param-only style programming
- PARAMD:      creat param-dict-ctx 
- PRE\_CHECK:  check input-paramd-ctx
- HANDLE:      
- TRANS:       transform to output-rtrn-ctx
- POST\_CHECK  check output-rtrn-ctx


install
=======
- npm install nv-cli-fctx -g 

usage
=====

        Usage: nv_cli_fctx [options]
        Options:
            -p, --params          ctx param names
            -f, --funcname        function name,defult="func"
            -h, --help            usage

    
example
-------
             

        nv-cli-fctx# nv_cli_fctx -f myfunc -p a b c

        function myfunc(ctx) {
           myfunc.CHECK_INPUT(ctx);
           //<body>
           let {a,b,c} = ctx;
           /*
               impl
           */
           //</body>
           let nctx = myfunc.TRANS(ctx);
           myfunc.CHECK_OUTPUT(nctx);
           return(nctx)
        }



        myfunc.PARAMD = ()=>(
        {
            "a": null,
            "b": null,
            "c": null
        }
        );

        myfunc.CHECK_INPUT = (ctx) => {
            /*impl checker*/
            let cond = /*Boolean*/
            if(cond) {
            } else {
                throw(new Error(/*input-check-fail*/))
            }
        }

        myfunc.TRANS = (ctx) => {
            let nctx;
            nctx = /*impl*/;
            return(nctx)
        }


        myfunc.CHECK_OUTPUT = (ctx) => {
            /*impl checker*/
            let cond = /*Boolean*/
            if(cond) {
            } else {
                throw(new Error(/*output-check-fail*/))
            }
        }


LICENSE
=======
- ISC

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