# nv-cli-add-missing-async

> nv-cli-add-missing-async ===================== - nv-cli-add-missing-async is a simple cli-tool - find AwaitExpression AND for await...of IN input - and Check along their ancestors func/method/lambda - IF is NOT async , ADD async

Latest version **1.0.1** (published 2022-02-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install nv-cli-add-missing-async
pnpm add nv-cli-add-missing-async
yarn add nv-cli-add-missing-async
bun add nv-cli-add-missing-async
```

Provides the command `nv_add_missing_async`.

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

## Links

- npm: https://www.npmjs.com/package/nv-cli-add-missing-async
- npm.io page: https://npm.io/package/nv-cli-add-missing-async

## Dependencies (2)

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

## Recent versions

- 1.0.1 (latest) — 2022-02-24

## README

nv-cli-add-missing-async
=====================
- nv-cli-add-missing-async is a simple cli-tool   
- find AwaitExpression  AND for await...of  IN input
- and Check along their ancestors func/method/lambda 
- IF is NOT async , ADD async

install
=======
- npm install nv-cli-add-missing-async -g 

usage
=====

        Usage: nv_add_missing_async [options]
        Options:
            -i, --input         input string ,default stdin
            -o, --output        output string,default stdout
            -h, --help          usage

 

    
example
-------


###

       # nv_add_missing_async



        r=>()=>{await 8}


        //// ===>press ctrl+D

        r => async () => {
          await 8;
        };




###

        # nv_add_missing_async

        function tst() { await 2}

        //----press ctrl+D

        async function tst() {
          await 2;
        }



###

        # nv_add_missing_async

        function tst() {
            for(let i=0;i<5;i++) {
                        for await(let ele of g) {
                        }
                }
        }



        //----press ctrl+D





        async function tst() {
          for (let i = 0; i < 5; i++) {
            for await (let ele of g) {}
          }
        } 


###

        # nv_add_missing_async


        class Cls {
                static smethod () {
                        while(true) {
                                d[await 3] = 100;
                        }
                }
            method() {
                        await 100
                }
        }


        //----press ctrl+D



        class Cls {
          static async smethod() {
            while (true) {
              d[await 3] = 100;
            }
          }

          async method() {
            await 100;
          }

        }


###


        # nv_add_missing_async





           function tst() {
                   {
                           var o = {
                                   method() {
                                           return(await 100)
                                   }
                           }
                           function inner() {
                                   await 200
                           }
                           {
                           function inner2() {
                                                   for await(let a of g) {}
                                           }
                           }
                           {d[await 3] = 100;}
                   }
           }



        //===>press ctrl+D


        async function tst() {
          {
            var o = {
              async method() {
                return await 100;
              }

            };

            async function inner() {
              await 200;
            }

            {
              async function inner2() {
                for await (let a of g) {}
              }
            }
            {
              d[await 3] = 100;
            }
          }
        }


LICENSE
=======
- ISC

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