Low-level parse5 node manipulation utilities.
npm install parse5-utils[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
Low-level parse5 node manipulation utilities.
``js`
const utils = require('parse5-utils')
Parse an HTML string,
If smart, returns a document or documentFragment`, appropriately.
Otherwise, always parses it as a document.
Parses HTML as a fragment.
Converts an AST into an HTML string.
Get the attributes of a node as an object.
Set an attribute of a node.
Get the attribute of a node.
Set a node's attributes from an object.
Create a node with a specific tag name.
Create a text node.
Add a child to a node, making it the first child.
Add a child to a node, making it the last child.
Replace a node with another node.
Remove a node.
Get all the nodes in a tree as a flat array.
Get the text of a node.
Set the text of a node.
[npm-image]: https://img.shields.io/npm/v/parse5-utils.svg?style=flat-square
[npm-url]: https://npmjs.org/package/parse5-utils
[travis-image]: https://img.shields.io/travis/webdeps/parse5-utils/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/webdeps/parse5-utils
[coveralls-image]: https://img.shields.io/codecov/c/github/codecov/example-python/master.svg?style=flat-square
[coveralls-url]: https://codecov.io/gh/webdeps/parse5-utils
[david-image]: http://img.shields.io/david/webdeps/parse5-utils.svg?style=flat-square
[david-url]: https://david-dm.org/webdeps/parse5-utils
[license-image]: http://img.shields.io/npm/l/parse5-utils.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/parse5-utils.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/parse5-utils