JSPM

dom-to-string

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24
  • Score
    100M100P100Q62589F
  • License MIT

Cross browser DOM to string converter.

Package Exports

  • dom-to-string

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dom-to-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

dom-to-string

Build Status npm version

Cross browser DOM to String converter.

Installation

npm install dom-to-string --save

Usage

const dom2str = require('dom-to-string');

var p = document.createElement('p');
p.innerHTML = "hello";

dom2str(p); // '<p>hello</p>'