{"id":26804500,"url":"https://github.com/djtb/kindlequotes","last_synced_at":"2025-04-23T04:51:35.876Z","repository":{"id":46939784,"uuid":"59358449","full_name":"DJTB/kindlequotes","owner":"DJTB","description":"Transform a kindle clippings text file to JSON","archived":false,"fork":false,"pushed_at":"2023-01-03T15:59:45.000Z","size":862,"stargazers_count":10,"open_issues_count":13,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-29T22:17:33.648Z","etag":null,"topics":["clippings","highlights","json","kindle","quotes"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/DJTB.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}},"created_at":"2016-05-21T12:22:20.000Z","updated_at":"2025-02-13T09:11:27.000Z","dependencies_parsed_at":"2023-02-01T07:25:12.253Z","dependency_job_id":null,"html_url":"https://github.com/DJTB/kindlequotes","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/DJTB%2Fkindlequotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DJTB%2Fkindlequotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DJTB%2Fkindlequotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DJTB%2Fkindlequotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DJTB","download_url":"https://codeload.github.com/DJTB/kindlequotes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250372947,"owners_count":21419722,"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":["clippings","highlights","json","kindle","quotes"],"created_at":"2025-03-29T22:17:38.645Z","updated_at":"2025-04-23T04:51:35.857Z","avatar_url":"https://github.com/DJTB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003eKindle Quotes\u003c/h1\u003e\n\u003ch5 align=\"center\"\u003eTransform Kindle 'My Clippings' text file to JSON.\u003c/h5\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- Npm Version --\u003e\n  \u003ca href=\"https://www.npmjs.com/package/kindlequotes\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/kindlequotes.svg\" alt=\"NPM package\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- Test Coverage --\u003e\n  \u003ca href=\"https://coveralls.io/github/DJTB/kindleQuotes\"\u003e\n    \u003cimg src=\"https://img.shields.io/coveralls/DJTB/kindlequotes.svg\" alt=\"Test Coverage\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n### Features\n* Replaces dumbquotes ' ' \" \" with smartquotes ‘ ’ “ ”\n* Prepends highlights starting mid-sentence with an …ellipsis\n* Trims large sections of spacing (from epub or pdf highlights)\n* Standardises author format as Firstname Lastname\n* Skips bookmarks, duplicates, and empty highlights\n\n#### Transform this:\n```\n==========\nThe Third Bear (VanderMeer, Jeff)\n- Your Highlight at location 1856-1857 | Added on Monday, 1 September 2014 12:58:20\n\nBlake says, \"Where?\" He's a man who measures words as if he had only a few given to him by Fate; too generous a syllable from his lips, and he might fall over dead.\n==========\nSongs of the Dying Earth (Dozois, Gardner;Martin, George R.R.)\n- Your Highlight at location 11849-11850 | Added on Thursday, 30 April 2015 20:58:20\n\nand eyeing the wizard speculatively across the room. A glance was enough to tell Molloqos that she was a woman of the evening, though in her case evening was edging on toward night.\n==========\n```\n\n#### Into this:\n```\n[\n  {\n    \"title\": \"The Third Bear\",\n    \"authors\": [\"Jeff VanderMeer\"],\n    \"loc\": \"1856-1857\",\n    \"date\": \"2014-09-01T12:58:20.000Z\",\n    \"content\": \"Blake says, “Where?” He’s a man who measures words as if he had only a few given to him by Fate; too generous a syllable from his lips, and he might fall over dead.\"\n  },\n   {\n    \"title\": \"Songs of the Dying Earth\",\n    \"authors\": [\"Gardner Dozois\", \"George R.R. Martin\"],\n    \"loc\": \"11849-11850\",\n    \"date\": \"2015-04-30T20:58:20.000Z\",\n    \"content\": \"…and eyeing the wizard speculatively across the room. A glance was enough to tell Molloqos that she was a woman of the evening, though in her case evening was edging on toward night.\"\n  }\n]\n```\n\n### Usage\n#### As Global CLI\n```bash\n$ npm install -g kindlequotes\n$ kindlequotes -i 'My Clippings.txt' -o 'my-quotes.json'\n```\n\n##### Options\n```\n-i, --infile [value]   Filename to read kindle highlights [Default: My Clippings.txt]\n-o, --outfile [value]  Filename to write JSON [Default: quotes.json]\n-d, --dirname [value]  Path to write outfile to [Default: current working directory]\n-v, --version          Output the version number\n-h, --help             Output this usage information\n```\n\n#### As Import in a Local Project\n```bash\n$ npm install kindlequotes\n```\n```javascript\nconst transformQuotes = require('kindlequotes');\nconst fs = require('fs');\nconst quotes = transformQuotes(\n  fs.readFileSync('./My Clippings.txt', 'utf8')\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjtb%2Fkindlequotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjtb%2Fkindlequotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjtb%2Fkindlequotes/lists"}