{"id":15672638,"url":"https://github.com/ytakahashi/chrome-bookmark-reader","last_synced_at":"2025-04-30T07:22:26.293Z","repository":{"id":40757634,"uuid":"260644341","full_name":"ytakahashi/chrome-bookmark-reader","owner":"ytakahashi","description":"A library/cli to read Bookmarks of Google Chrome.","archived":false,"fork":false,"pushed_at":"2024-08-01T11:59:18.000Z","size":628,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T13:51:13.494Z","etag":null,"topics":["bookmark","chrome","cli","cli-app","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ytakahashi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-02T08:24:43.000Z","updated_at":"2025-03-29T23:22:29.000Z","dependencies_parsed_at":"2024-07-21T08:31:56.313Z","dependency_job_id":"b8643781-b1b6-4891-a5c3-fae6a2fd7ca7","html_url":"https://github.com/ytakahashi/chrome-bookmark-reader","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":0.3793103448275862,"last_synced_commit":"86b4514088a99a716d4cfbfbafdbccdf4209205f"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakahashi%2Fchrome-bookmark-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakahashi%2Fchrome-bookmark-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakahashi%2Fchrome-bookmark-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakahashi%2Fchrome-bookmark-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ytakahashi","download_url":"https://codeload.github.com/ytakahashi/chrome-bookmark-reader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251658635,"owners_count":21622899,"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":["bookmark","chrome","cli","cli-app","typescript"],"created_at":"2024-10-03T15:29:16.869Z","updated_at":"2025-04-30T07:22:26.275Z","avatar_url":"https://github.com/ytakahashi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chrome-bookmark-reader\n\n![Typescript](https://img.shields.io/badge/-Typescript-007ACC.svg?logo=typescript\u0026style=popout)\n[![npm version](https://badge.fury.io/js/chrome-bookmark-reader.svg)](https://badge.fury.io/js/chrome-bookmark-reader)\n[![Actions Status](https://github.com/ytakahashi/chrome-bookmark-reader/workflows/Node.js%20CI/badge.svg)](https://github.com/ytakahashi/chrome-bookmark-reader/actions)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)\n\nA library/cli to read Bookmarks of Google Chrome.  \nThis library parses bookmark json files of Google Chrome and returns the result as a flat json object.\n\n## Requirements\n\n- Node.js \u003e= 12\n\n## Usage\n\n### As a library\n\n```terminal\nnpm install chrome-bookmark-reader\n```\n\n```terminal\nyarn add chrome-bookmark-reader\n```\n\n```typescript\nimport { getChromeBookmark } from 'chrome-bookmark-reader'\n\nconst path = '/path/to/Chrome/Bookmark'\nconst result = getChromeBookmark(path)\n\nconsole.log(result)\n// shows your bookmark contents\n```\n\n#### option\n\n```typescript\nconst option = {\n  shouldIncludeFolders: true,\n}\nconst result = getChromeBookmark(path, option)\n```\n\n- `shouldIncludeFolders`: If `true`, results include bookmark folders (defaults to `false`).\n\n### As a cli\n\n```terminal\nnpm install -g chrome-bookmark-reader\n```\n\n```terminal\nchrome-bookmark --file \"/path/to/Chrome/Bookmark\" [--pattern \"something\"] [--output \"text\"]\n# -\u003e shows your bookmark contents\n```\n\n#### options\n\n- `--file` (`-f`): Required. Path to Chrome Bookmarks File (see below).\n- `--pattern` (`-p`): Optional. If specified, result is filtered by the given value.\n- `--output` (`-o`): Optional. Result is displayed according to this value. format. One of `\"json\"` or `\"text\"` is available. Defaults to `\"json\"`.\n\nFor detail, type `chrome-bookmark --help`.\n\n#### Notice\n\nIf you are a mac user, you can find the bookmark json file at the following location:\n\n- `\"/Users/{Username}/Library/Application Support/Google/Chrome/{Chrome Profile}/Bookmarks\"`\n- [Where are Google Chrome bookmarks stored in macOS for multiple profiles?](https://apple.stackexchange.com/questions/322935/where-are-google-chrome-bookmarks-stored-in-macos-for-multiple-profiles)\n\nFor windows, see following article.\n\n- [How to Find Chrome Bookmarks File Location in Windows](https://windowsloop.com/find-google-bookmarks-folder-windows/)\n\n### Related repositories\n\n- [chrome-history-reader](https://github.com/ytakahashi/chrome-history-reader)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytakahashi%2Fchrome-bookmark-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fytakahashi%2Fchrome-bookmark-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytakahashi%2Fchrome-bookmark-reader/lists"}