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
- Host: GitHub
- URL: https://github.com/viktor-yakubiv/hast-util-merge
- Owner: viktor-yakubiv
- License: mit
- Created: 2023-12-04T15:00:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-12T11:14:55.000Z (over 1 year ago)
- Last Synced: 2025-02-09T15:33:37.200Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).