Skip to content

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

License

Notifications You must be signed in to change notification settings

Liquid-JS/extractor

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published