Ability to set configuration options programmatically with Accessibility Checker API [Feature]: #2125
Labels
node-accessibility-checker
Issues in the accessibility-checker component
user-reported
Issues identified outside of the core team
Project
accessibility-checker-engine, accessibility-checker for Node
Description
I have searched documentation and examples extensively but not found a way to set configuration options programmatically when using the Node Accessibility-checker API. The technique of using a .achecker.yml configuration file in the project root directory does work, but it is overly restrictive. It requires that directory to be the current directory when running the .js program. It requires desired output formats to be specified in advance, before the program is run. It does not allow flexibility in the names of the output files.
Please add to the API something like a checker.setConfiguration method for passing options at runtime. Please create separate methods for saving the various formats to disk, e.g., report.saveXlsx(sFilePath) for saving Excel output from the report object obtained from the getCompliance method. Similarly, there might be saveCsv, saveJson, and saveHtml methods. If the calling code awaits the return of such methods, that could be a way of ensuring they are fully flushed to disk (see other issue about this).
The text was updated successfully, but these errors were encountered: