1.0.3 • Published 2 years ago

nv-facutil-arg v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

nv-facutil-arg

  • simple version of nv-arg-basic, without support of RestElement args

install

  • npm install nv-facutil-arg

usage

  const x = require("nv-facutil-arg") 

example

            function tst(a,b,c) {console.log(a,b,c)}

            x.add_adesc(tst,["a","b","c"])


            > tst
            [Function: tst] {
              '#param_desc': Desc { t: 'a', nms: [ 'a', 'b', 'c' ] }
            }
            > 


            var new_func = x.sync_a2d(tst);
            > new_func({a:100,b:200,c:300})
            100 200 300

METHODS

APIS

    {
      Desc: [class Desc] { TYPE_OPTS: [ 'a', 'd' ] },
      PARAM_DESC_KEY: '#param_desc',
      add_ddesc: [Function: add_ddesc],
      add_adesc: [Function: add_adesc],
      sync_a2d: [Function: sync_a2d],
      async_a2d: [Function: async_a2d],
      sync_d2a: [Function: sync_d2a],
      async_d2a: [Function: async_d2a]
    }

LICENSE

  • ISC
1.0.3

2 years ago

1.0.2

2 years ago