package
Stringify virtual-dom trees into HTML.
npm install virtual-dom-stringifyGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Stringify virtual-dom trees into HTML. For parsing DOM nodes into a virtual-dom tree use vnode-virtualize.
This module is deprecated. Use vdom-to-html.
Using npm:
npm install --save virtual-dom-stringifyUsing bower:
bower install --save virtual-dom-stringifyString ⏏Stringify given virtual dom tree and return html.
Kind: Exported function
| Param | Type | Description |
|---|---|---|
| node | VirtualNode | |
| parent | VirtualNode | |
| [options] | Object | |
| [options.selfClosingTags] | Array.<String> | tags that are self-closing |
| [options.attributes] | Object.<String, String> | map of attribute names where keys are camelCased name and values are the HTML attribute name. |
| [options.asciiSafe] | Boolean | encode non-ASCII symbols (default: false) |
Example
var VirtualNode = require('vtree/vnode');
var stringify = require('virtual-dom-stringify');
stringify(new VirtualNode('div'));
// => "<div></div>"Please submit all issues and pull requests to the alexmingoia/virtual-dom-stringify repository!
Run tests using npm test.
If you have any problem or suggestion please open an issue here.
Estimated unpacked size across 18 packages.
281.5 kB
Includes dependencies.
5 direct · 2 outdated
^0.5.0
2.0.0
^1.1.1
4.0.0
^2.0.1
2.1.1
^1.0.0
1.0.0
^1.1.0
1.1.0