Constructors
constructor
- new Slugger(options: { lowercase: boolean }): Slugger
Parameters
- options: { lowercase: boolean }
Methods
getSimilarAnchors
- getSimilarAnchors(anchor: string): string[]
Returns string[]
hasAnchor
- hasAnchor(anchor: string): boolean
Returns boolean
slug
- slug(value: string): string
Returns string
Responsible for getting a unique anchor for elements within a page.