{"id":18631268,"url":"https://github.com/bahamas10/node-netscape-bookmarks","last_synced_at":"2025-04-11T06:32:01.874Z","repository":{"id":6246987,"uuid":"7479308","full_name":"bahamas10/node-netscape-bookmarks","owner":"bahamas10","description":"Create a netscape format bookmarks file (works with Chrome)","archived":false,"fork":false,"pushed_at":"2022-01-14T22:21:13.000Z","size":6,"stargazers_count":42,"open_issues_count":5,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T10:37:50.511Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bahamas10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-07T08:45:39.000Z","updated_at":"2025-02-08T13:06:06.000Z","dependencies_parsed_at":"2022-07-21T12:32:19.715Z","dependency_job_id":null,"html_url":"https://github.com/bahamas10/node-netscape-bookmarks","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahamas10%2Fnode-netscape-bookmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahamas10%2Fnode-netscape-bookmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahamas10%2Fnode-netscape-bookmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahamas10%2Fnode-netscape-bookmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahamas10","download_url":"https://codeload.github.com/bahamas10/node-netscape-bookmarks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008625,"owners_count":21032556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T05:06:22.350Z","updated_at":"2025-04-11T06:32:01.578Z","avatar_url":"https://github.com/bahamas10.png","language":"JavaScript","funding_links":[],"categories":["Repository organization"],"sub_categories":[],"readme":"netscape-bookmarks\n==================\n\nCreate a netscape format bookmarks file (works with Chrome)\n\nIntended to be used by Node.JS.\n\nInstallation\n------------\n\n    npm install netscape-bookmarks\n\nUsage\n-----\n\n``` js\nvar netscape = require('netscape-bookmarks');\nvar bookmarks = {\n  'Dave Eddy': 'http://www.daveeddy.com',\n  'Perfume Global': 'http://www.perfume-global.com'\n};\n\nvar html = netscape(bookmarks));\nconsole.log(html);\n```\n\nresults in this awful looking, netscape-compatible, html\n\n``` html\n\u003c!DOCTYPE NETSCAPE-Bookmark-file-1\u003e\n\u003c!--This is an automatically generated file.\n    It will be read and overwritten.\n    Do Not Edit! --\u003e\n\u003cMETA HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=UTF-8\"\u003e\n\u003cTitle\u003eBookmarks\u003c/Title\u003e\n\u003cH1\u003eBookmarks\u003c/H1\u003e\n\u003cDL\u003e\u003cp\u003e\n\u003cDT\u003e\u003cA HREF=\"http://www.daveeddy.com\"\u003eDave Eddy\u003c/a\u003e\n\u003cDT\u003e\u003cA HREF=\"http://www.perfume-global.com\"\u003ePerfume Global\u003c/a\u003e\n\u003c/DL\u003e\u003cp\u003e\n```\n\nYou can import this HTML into your favorite browser and it *should*\nwork.  Consider looking into the [node urlfile](https://github.com/bahamas10/node-urlfile)\nmodule I've written for further bookmark processing.\n\nExamples\n--------\n\nGiven\n\n``` json\n{\n  \"Dave Eddy's Blog\": \"http://www.daveeddy.com\",\n  \"Perfume Global\": \"http://www.perfume-global.com/\",\n  \"Unfiled\": {\n    \"contents\": {\n      \"Twitter\": \"http://twitter.com\"\n    }\n  },\n  \"Second Folder\": {\n    \"contents\": {\n      \"Nested Folders!\": {\n        \"contents\": {\n          \"YouTube\": \"http://www.youtube.com\",\n          \"GitHub\": \"https://github.com\"\n        }\n      }\n    }\n  },\n  \"TekZoned\": {\n    \"url\": \"http://www.tekzoned.com\",\n    \"add_date\": 1357547237,\n    \"last_visit\": 1357547238,\n    \"last_modified\": 1357547239\n  }\n}\n```\n\nyou get\n\n``` html\n\u003c!DOCTYPE NETSCAPE-Bookmark-file-1\u003e\n\u003c!--This is an automatically generated file.\n    It will be read and overwritten.\n    Do Not Edit! --\u003e\n\u003cMETA HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=UTF-8\"\u003e\n\u003cTitle\u003eBookmarks\u003c/Title\u003e\n\u003cH1\u003eBookmarks\u003c/H1\u003e\n\u003cDL\u003e\u003cp\u003e\n\u003cDT\u003e\u003cA HREF=\"http://www.daveeddy.com\"\u003eDave Eddy's Blog\u003c/a\u003e\n\u003cDT\u003e\u003cA HREF=\"http://www.perfume-global.com/\"\u003ePerfume Global\u003c/a\u003e\n  \u003cDT\u003e\u003cH3\u003eUnfiled\u003c/H3\u003e\n  \u003cDL\u003e\u003cp\u003e\n  \u003cDT\u003e\u003cA HREF=\"http://twitter.com\"\u003eTwitter\u003c/a\u003e\n  \u003c/DL\u003e\u003cp\u003e\n  \u003cDT\u003e\u003cH3\u003eSecond Folder\u003c/H3\u003e\n  \u003cDL\u003e\u003cp\u003e\n    \u003cDT\u003e\u003cH3\u003eNested Folders!\u003c/H3\u003e\n    \u003cDL\u003e\u003cp\u003e\n    \u003cDT\u003e\u003cA HREF=\"http://www.youtube.com\"\u003eYouTube\u003c/a\u003e\n    \u003cDT\u003e\u003cA HREF=\"https://github.com\"\u003eGitHub\u003c/a\u003e\n    \u003c/DL\u003e\u003cp\u003e\n  \u003c/DL\u003e\u003cp\u003e\n\u003cDT\u003e\u003cA HREF=\"http://www.tekzoned.com\" ADD_DATE=\"1357547237\" LAST_VISIT=\"1357547238\" LAST_MODIFIED=\"1357547239\"\u003eTekZoned\u003c/a\u003e\n\u003c/DL\u003e\u003cp\u003e\n```\n\nNotes\n-----\n\nA website can either be a string containing the URL only, or an object with\nthe `url` attribute present.  If the `contents` attribute is found, it is\nassumed to be a folder containing more folders or websites.\n\nLicense\n-------\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahamas10%2Fnode-netscape-bookmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahamas10%2Fnode-netscape-bookmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahamas10%2Fnode-netscape-bookmarks/lists"}