1.0.7 • Published 3 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-enc
to 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": [""] })
tagnames
defines via the respective tags which html component should be added an idoverwriteExistingIds
determines whether existing ids should be overwrittensearchStartingRelativePath
defines the relative path from which the subfolders are searched for .html filesblacklist
determines which files should be ignored