Espree
Parse JavaScript into structures a lint checker can inspect.
eslint · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a Node.js project, install [email protected]. Read a declaration and recover its variable name and literal value.
What we tested
11.2.0. Read a declaration and recover its variable name and literal value. Read green as the variable name and true as its value.