/extractor

A tiny (~4KB) tool to extract DOM tree with styles and pseudo elements

Primary LanguageJavaScriptMIT LicenseMIT

Extractor

GitHub license npm scope

A tiny (~4KB) tool to extract DOM tree with styles and pseudo elements.

Installation

npm install @liquid-js/extractor

API Documentation

https://liquid-js.github.io/extractor/

Usage

import { serializeWithStyles } from '@liquid-js/extractor'

const element = document.getElementById('target-element')
const htmlCode = serializeWithStyles(element)

License

MIT License