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
- Host: GitHub
- URL: https://github.com/asim-2000/parse-match
- Owner: Asim-2000
- Created: 2021-05-09T12:21:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T21:45:55.000Z (about 5 years ago)
- Last Synced: 2025-02-27T01:54:09.691Z (over 1 year ago)
- Topics: js, parser, research-tool
- Language: JavaScript
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
```shell
$ npm i --save parse-function
```
- Using Parse Function Libray extract the name/ID of the function and the expected output