An open API service indexing awesome lists of open source software.

https://github.com/asim-2000/parse-match

✂️ Parsing JS functions to extract important information
https://github.com/asim-2000/parse-match

js parser research-tool

Last synced: 13 days ago
JSON representation

✂️ Parsing JS functions to extract important information

Awesome Lists containing this project

README

          

## Parsing UUID code

### Required:

- TestID
- Inputs of the actual function
- Expected output from the test function

### Expected Methodology

- Get the input parameters using the arguments method in js

```javascript
function first(a, b, c) {
console.log(arguments[0]);

console.log(arguments[1])

console.log(arguments[2])
}

first(1, 2, 3);

//output
//1
//2
//3
```

Alternatively, we can use parse-function package available at npm for this task.

npm parse-function

```shell
$ npm i --save parse-function
```

- Using Parse Function Libray extract the name/ID of the function and the expected output