To add stimulus-parser
to your project, run the following command in your terminal:
import { Project } from "stimulus-parser" const project = new Project("/Users/user/path/to/project") await project.initialize() const controllers = project.controllerDefinitions const controller = controllers[0] console.log(controller.actionNames) // => ["connect", "click", "disconnect"] console.log(controller.targetNames) // => ["name", "output"] console.log(controller.classNames) // => ["loading"] console.log(controller.values) // => [{ url: { type: "String", default: "" } }]
You can inspect parse results on the hosted playground at https://stimulus-parser.hotwire.io.
To run the tests:
yarn install yarn build yarn test
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4