1.0.7 • Published 3 years ago

html-id-generator-enc v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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

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 id
    • overwriteExistingIds determines whether existing ids should be overwritten
    • searchStartingRelativePath defines the relative path from which the subfolders are searched for .html files
    • blacklist determines which files should be ignored
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago