Parsing browser bookmarks into json objects

Bookmarks exported by chrome,safari,firefox,ie I want to convert to objects in the following format

{
    "title": "title",
    "addr": "href",
    "type": "site", // folder
    "children": [] // 
}

several browsers have similar bookmark formats but some differences
find the conversion code
Baidu network disk data source

Sep.27,2021

thanks for inviting ~ I don't know what you want to unify this format. In addition, "the format of bookmarks in several browsers is similar but there are some differences." I think we should paste the corresponding code to better help others solve the problem.


Code
https://github.com/hold-baby/.

Menu