1.0.7 • Published 5 years ago
html-id-generator-enc v1.0.7
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-encto install the package- Usage
- Import the package 
const {generateHtmlIds} = require('html-id-generator-enc')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