1.0.2 • Published 11 days ago

ethereal-flame-parser v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

ethereal-flame-parser

A JavaScript library for parsing HTML using htmlparser2.

Installation

npm install ethereal-flame-parser

Usage

const { parseHTML, extractTextFromHTML, extractAttributesFromHTML } = require('ethereal-flame-parser');

// Example HTML string
const htmlString = '<div>Hello, world!</div>';

// Parse the HTML string
parseHTML(htmlString);

// Extract text content from HTML string
extractTextFromHTML(htmlString);

// Extract attributes from HTML string
extractAttributesFromHTML(htmlString);

API

parseHTML(htmlString: string): void

Parses the provided HTML string and logs the resulting DOM tree to the console.

extractTextFromHTML(htmlString: string): void

Extracts text content from the provided HTML string and logs it to the console.

extractAttributesFromHTML(htmlString: string): void

Extracts attributes from the provided HTML string and logs them to the console.

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.2

11 days ago

1.0.1

1 month ago

1.0.0

1 month ago