{"action":"closed","number":8,"pull_request":{"url":"https://api.github.com/repos/electron/hubdown/pulls/8","id":210985936,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwOTg1OTM2","html_url":"https://github.com/electron/hubdown/pull/8","diff_url":"https://github.com/electron/hubdown/pull/8.diff","patch_url":"https://github.com/electron/hubdown/pull/8.patch","issue_url":"https://api.github.com/repos/electron/hubdown/issues/8","number":8,"state":"closed","locked":false,"title":"feat: add optional leveldb cache","user":{"login":"zeke","id":2289,"node_id":"MDQ6VXNlcjIyODk=","avatar_url":"https://avatars1.githubusercontent.com/u/2289?v=4","gravatar_id":"","url":"https://api.github.com/users/zeke","html_url":"https://github.com/zeke","followers_url":"https://api.github.com/users/zeke/followers","following_url":"https://api.github.com/users/zeke/following{/other_user}","gists_url":"https://api.github.com/users/zeke/gists{/gist_id}","starred_url":"https://api.github.com/users/zeke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeke/subscriptions","organizations_url":"https://api.github.com/users/zeke/orgs","repos_url":"https://api.github.com/users/zeke/repos","events_url":"https://api.github.com/users/zeke/events{/privacy}","received_events_url":"https://api.github.com/users/zeke/received_events","type":"User","site_admin":true},"body":"hubdown's `remark` markdown parser is pretty fast, but things can start to slow down when you're processing hundreds or thousands of files. To make life easier in these situations you can use hubdown's optional cache, which stores preprocessed markdown for fast retrieval on subsequent runs.\r\n\r\nTo use the cache, bring your own [level](https://ghub.io/level) instance and supply it as an option to hubdown. This helps keep hubdown lean on (native) dependencies for users who don't need the cache.\r\n\r\n```js\r\nconst hubdown = require('hubdown')\r\nconst cache = require('level')('./my-hubdown-cache')\r\n\r\nhubdown('I will be cached.', {cache}).then(doc => {\r\n  console.log(doc)\r\n})\r\n```\r\n\r\n- [x] Implementation\r\n- [x] Tests\r\n- [x] maybe include a hash of the options object as part of the cache key.\r\n- [x] Documentation","created_at":"2018-08-27T01:38:12Z","updated_at":"2018-08-28T16:17:00Z","closed_at":"2018-08-28T16:17:00Z","merged_at":"2018-08-28T16:17:00Z","merge_commit_sha":"6de612110e3e3697046dc68a3b24f39c21397687","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/electron/hubdown/pulls/8/commits","review_comments_url":"https://api.github.com/repos/electron/hubdown/pulls/8/comments","review_comment_url":"https://api.github.com/repos/electron/hubdown/pulls/comments{/number}","comments_url":"https://api.github.com/repos/electron/hubdown/issues/8/comments","statuses_url":"https://api.github.com/repos/electron/hubdown/statuses/d66cf5c2d4bb5aca975cc938bc03d01ab56c4c08","head":{"label":"electron:add-optional-cache","ref":"add-optional-cache","sha":"d66cf5c2d4bb5aca975cc938bc03d01ab56c4c08","user":{"login":"electron","id":13409222,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDA5MjIy","avatar_url":"https://avatars1.githubusercontent.com/u/13409222?v=4","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"repo":{"id":104969250,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ5NjkyNTA=","name":"hubdown","full_name":"electron/hubdown","owner":{"login":"electron","id":13409222,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDA5MjIy","avatar_url":"https://avatars1.githubusercontent.com/u/13409222?v=4","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/electron/hubdown","description":"Convert markdown to GitHub-style HTML using a common set of remark plugins","fork":false,"url":"https://api.github.com/repos/electron/hubdown","forks_url":"https://api.github.com/repos/electron/hubdown/forks","keys_url":"https://api.github.com/repos/electron/hubdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/electron/hubdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/electron/hubdown/teams","hooks_url":"https://api.github.com/repos/electron/hubdown/hooks","issue_events_url":"https://api.github.com/repos/electron/hubdown/issues/events{/number}","events_url":"https://api.github.com/repos/electron/hubdown/events","assignees_url":"https://api.github.com/repos/electron/hubdown/assignees{/user}","branches_url":"https://api.github.com/repos/electron/hubdown/branches{/branch}","tags_url":"https://api.github.com/repos/electron/hubdown/tags","blobs_url":"https://api.github.com/repos/electron/hubdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/electron/hubdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/electron/hubdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/electron/hubdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/electron/hubdown/statuses/{sha}","languages_url":"https://api.github.com/repos/electron/hubdown/languages","stargazers_url":"https://api.github.com/repos/electron/hubdown/stargazers","contributors_url":"https://api.github.com/repos/electron/hubdown/contributors","subscribers_url":"https://api.github.com/repos/electron/hubdown/subscribers","subscription_url":"https://api.github.com/repos/electron/hubdown/subscription","commits_url":"https://api.github.com/repos/electron/hubdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/electron/hubdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/electron/hubdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/electron/hubdown/issues/comments{/number}","contents_url":"https://api.github.com/repos/electron/hubdown/contents/{+path}","compare_url":"https://api.github.com/repos/electron/hubdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/electron/hubdown/merges","archive_url":"https://api.github.com/repos/electron/hubdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/electron/hubdown/downloads","issues_url":"https://api.github.com/repos/electron/hubdown/issues{/number}","pulls_url":"https://api.github.com/repos/electron/hubdown/pulls{/number}","milestones_url":"https://api.github.com/repos/electron/hubdown/milestones{/number}","notifications_url":"https://api.github.com/repos/electron/hubdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/electron/hubdown/labels{/name}","releases_url":"https://api.github.com/repos/electron/hubdown/releases{/id}","deployments_url":"https://api.github.com/repos/electron/hubdown/deployments","created_at":"2017-09-27T03:47:49Z","updated_at":"2018-07-18T02:41:03Z","pushed_at":"2018-08-28T16:17:00Z","git_url":"git://github.com/electron/hubdown.git","ssh_url":"git@github.com:electron/hubdown.git","clone_url":"https://github.com/electron/hubdown.git","svn_url":"https://github.com/electron/hubdown","homepage":"","size":15,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":7,"open_issues":1,"watchers":24,"default_branch":"master"}},"base":{"label":"electron:master","ref":"master","sha":"c282339a342822600f740d7a987dd0c24772d99e","user":{"login":"electron","id":13409222,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDA5MjIy","avatar_url":"https://avatars1.githubusercontent.com/u/13409222?v=4","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"repo":{"id":104969250,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ5NjkyNTA=","name":"hubdown","full_name":"electron/hubdown","owner":{"login":"electron","id":13409222,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDA5MjIy","avatar_url":"https://avatars1.githubusercontent.com/u/13409222?v=4","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/electron/hubdown","description":"Convert markdown to GitHub-style HTML using a common set of remark plugins","fork":false,"url":"https://api.github.com/repos/electron/hubdown","forks_url":"https://api.github.com/repos/electron/hubdown/forks","keys_url":"https://api.github.com/repos/electron/hubdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/electron/hubdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/electron/hubdown/teams","hooks_url":"https://api.github.com/repos/electron/hubdown/hooks","issue_events_url":"https://api.github.com/repos/electron/hubdown/issues/events{/number}","events_url":"https://api.github.com/repos/electron/hubdown/events","assignees_url":"https://api.github.com/repos/electron/hubdown/assignees{/user}","branches_url":"https://api.github.com/repos/electron/hubdown/branches{/branch}","tags_url":"https://api.github.com/repos/electron/hubdown/tags","blobs_url":"https://api.github.com/repos/electron/hubdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/electron/hubdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/electron/hubdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/electron/hubdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/electron/hubdown/statuses/{sha}","languages_url":"https://api.github.com/repos/electron/hubdown/languages","stargazers_url":"https://api.github.com/repos/electron/hubdown/stargazers","contributors_url":"https://api.github.com/repos/electron/hubdown/contributors","subscribers_url":"https://api.github.com/repos/electron/hubdown/subscribers","subscription_url":"https://api.github.com/repos/electron/hubdown/subscription","commits_url":"https://api.github.com/repos/electron/hubdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/electron/hubdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/electron/hubdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/electron/hubdown/issues/comments{/number}","contents_url":"https://api.github.com/repos/electron/hubdown/contents/{+path}","compare_url":"https://api.github.com/repos/electron/hubdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/electron/hubdown/merges","archive_url":"https://api.github.com/repos/electron/hubdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/electron/hubdown/downloads","issues_url":"https://api.github.com/repos/electron/hubdown/issues{/number}","pulls_url":"https://api.github.com/repos/electron/hubdown/pulls{/number}","milestones_url":"https://api.github.com/repos/electron/hubdown/milestones{/number}","notifications_url":"https://api.github.com/repos/electron/hubdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/electron/hubdown/labels{/name}","releases_url":"https://api.github.com/repos/electron/hubdown/releases{/id}","deployments_url":"https://api.github.com/repos/electron/hubdown/deployments","created_at":"2017-09-27T03:47:49Z","updated_at":"2018-07-18T02:41:03Z","pushed_at":"2018-08-28T16:17:00Z","git_url":"git://github.com/electron/hubdown.git","ssh_url":"git@github.com:electron/hubdown.git","clone_url":"https://github.com/electron/hubdown.git","svn_url":"https://github.com/electron/hubdown","homepage":"","size":15,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":7,"open_issues":1,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/electron/hubdown/pulls/8"},"html":{"href":"https://github.com/electron/hubdown/pull/8"},"issue":{"href":"https://api.github.com/repos/electron/hubdown/issues/8"},"comments":{"href":"https://api.github.com/repos/electron/hubdown/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/electron/hubdown/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/electron/hubdown/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/electron/hubdown/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/electron/hubdown/statuses/d66cf5c2d4bb5aca975cc938bc03d01ab56c4c08"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"zeke","id":2289,"node_id":"MDQ6VXNlcjIyODk=","avatar_url":"https://avatars1.githubusercontent.com/u/2289?v=4","gravatar_id":"","url":"https://api.github.com/users/zeke","html_url":"https://github.com/zeke","followers_url":"https://api.github.com/users/zeke/followers","following_url":"https://api.github.com/users/zeke/following{/other_user}","gists_url":"https://api.github.com/users/zeke/gists{/gist_id}","starred_url":"https://api.github.com/users/zeke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeke/subscriptions","organizations_url":"https://api.github.com/users/zeke/orgs","repos_url":"https://api.github.com/users/zeke/repos","events_url":"https://api.github.com/users/zeke/events{/privacy}","received_events_url":"https://api.github.com/users/zeke/received_events","type":"User","site_admin":true},"comments":1,"review_comments":4,"maintainer_can_modify":false,"commits":7,"additions":94,"deletions":3,"changed_files":5}}
{"actor":{"display_login":"zeke"}}