@chengaoyuan/argnames

获得函数参数名列表

Usage no npm install needed!

<script type="module">
  import chengaoyuanArgnames from 'https://cdn.skypack.dev/@chengaoyuan/argnames';
</script>

README

argnames

npm version install size NPM Downloads Build Status Coverage Status

Installation

$ npm install @chengaoyuan/argnames

Usage

import argnames from "@chengaoyuan/argnames";
console.log(argnames(function(a:string,b:number){}); // out: ['a', 'b']

Testing

$ npm test