An open API service indexing awesome lists of open source software.

https://github.com/viktor-yakubiv/hast-util-merge

hast utility to consolidate subtrees and documents
https://github.com/viktor-yakubiv/hast-util-merge

Last synced: 2 months ago
JSON representation

hast utility to consolidate subtrees and documents

Awesome Lists containing this project

README

        

# hast-util-merge

An utility to merge [hast][] trees (elements).

The exported `mergeDocument` function merges two documents
consolidating `head`s and replacing `body` content by default.
This behaviour could be overriden,
see options in the source code.

If you need better documentation,
or the package lacks something, e.g. types,
leave a request in the issues.

[hast]: https://github.com/syntax-tree/hast

## License

This package is licensed under [MIT](./LICENSE).