html-id-generator-encr
v1.0.9
Published
This generator can be used from a certain StartPath to search all underlying folders for Html files and automatically set id-tags for them.
Downloads
9
Readme
html-id-generator
Documentation
This generator can be used from a certain StartPath to search all underlying folders for Html files and automatically set id-tags for them.
Quick Start
npm install html-id-generator-encrto install the package- Usage
- Import the package
const {generateHtmlIds} = require('html-id-generator-encr')in your .js file - Use the function
generateHtmlIds(Settings)with your specific settings
- Import the package
Settings
- The function generateHtmlIds needs specific Settings object, for example:
generateHtmlIds({ "tagNames" : ["dx-button", "input", "button"], "overwriteExistingIds" : false, "searchStartingRelativePath": "./", "blacklist": [""] })tagnamesdefines via the respective tags which html component should be added an idoverwriteExistingIdsdetermines whether existing ids should be overwrittensearchStartingRelativePathdefines the relative path from which the subfolders are searched for .html filesblacklistdetermines which files should be ignored
