# nv-cli-param

> cli-tool ,create partitial function

Latest version **1.0.4** (published 2021-09-21) · ISC license · 0 weekly downloads

## Install

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

Provides the commands `nv_param_pary`, `nv_param_parse`, `nv_param_parti`.

## 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.4 |
| Published | 2021-09-21 |
| First published | 2021-06-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ihgazni2 |
| Keywords | cli, partitial, function |

## Links

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

## Dependencies (2)

- [nv-js-parse](https://npm.io/package/nv-js-parse.md) ^1.0.1
- [nv-cli-basic](https://npm.io/package/nv-cli-basic.md) ^1.0.5

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2021-09-21
- 1.0.3 — 2021-06-19
- 1.0.2 — 2021-06-13
- 1.0.1 — 2021-06-13

## README

nv-cli-param
===============
- nv-cli-param    
- cli tool, quickly change param order 


install
=======
- npm install nv-cli-param -g 

usage
=====

    nv-cli-param# nv_param_parti -h
    Usage: nv_param_parti [options]
    Options:
        -n, --name            generate partitial function name, optional, default is params.join()
        -f, --function        template function
        -p, --params          selected params
        -r, --rest            spread rest param name, optional
        -o, --output          output js file,default stdout
        -h, --help            usage

    
    
    
    nv-cli-param# nv_param_parse -h
    Usage: nv_param_parse [options]
    Options:
        -f, --function        template function
        -i, --input           input function file,default stdin
        -o, --output          output js file,default stdout
        -h, --help            usage

    nv-cli-param#


        Usage: nv_param_pary [options]
        Options:
            -f, --function        template function
            -i, --input           input function file,default stdin
            -o, --output          output js file,default stdout
            -h, --help            usage


partitial
---------

    # nv_param_parti -f "function origf(a,b=200,c,d=400,e,...args) {return([a,b,c,d,e])}" -p e a c
    
    function origf$e_a_c(e,a,c){
        return(origf(a,200,c,400,e))
    }

    #



parse
-----

    nv-cli-param# nv_param_parse -f "function func(a,b=200,c,d=400,e,...args) {return([a,b,c,d,e])}"
    {
        "fname": "func",
        "params": [
            "a",
            "b",
            "c",
            "d",
            "e"
        ],
        "defaults": {
            "b": "200",
            "d": "400"
        },
        "lst": "args",
        "is_last_rest": true,
        "required_num": 3,
        "total_param_num": "<Infinity>",
        "body": "{\n  return [a, b, c, d, e];\n}"
    }
    nv-cli-param#


### pary 
    
     #nv\_param\_pary -f "function tst(a,b,c,d=300,e,...args){}"
     
     [ 'a', 'b', 'c', { d: '300' }, 'e', [ 'args' ] ]


LICENSE
=======
- ISC

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