{"id":14070227,"url":"https://github.com/imabp/blogtraversy","last_synced_at":"2025-07-14T10:30:37.041Z","repository":{"id":47670411,"uuid":"387157133","full_name":"imabp/blogtraversy","owner":"imabp","description":"NPM Package that fetches all your blogs from Hashnode and Medium","archived":false,"fork":false,"pushed_at":"2021-07-31T14:37:42.000Z","size":659,"stargazers_count":31,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-01T15:41:11.693Z","etag":null,"topics":["blog","hacktoberfest","hashnode","medium"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/blogtraversy","language":"TypeScript","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/imabp.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":"2021-07-18T11:16:25.000Z","updated_at":"2024-03-09T17:18:54.000Z","dependencies_parsed_at":"2022-08-22T03:41:24.091Z","dependency_job_id":null,"html_url":"https://github.com/imabp/blogtraversy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imabp%2Fblogtraversy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imabp%2Fblogtraversy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imabp%2Fblogtraversy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imabp%2Fblogtraversy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imabp","download_url":"https://codeload.github.com/imabp/blogtraversy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225970086,"owners_count":17553391,"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":["blog","hacktoberfest","hashnode","medium"],"created_at":"2024-08-13T07:07:34.870Z","updated_at":"2024-11-22T21:40:40.539Z","avatar_url":"https://github.com/imabp.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg height=\"150\" width=\"150\" src =\"https://media.discordapp.net/attachments/834130556865347645/866319407055634452/Frame_42.png\"\n/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\u003cb\u003eBlog Traversy\u003c/b\u003e\u003cbr/\u003e\n    \u003ca href=\"https://blogtraversy.netlify.app/\"\u003eTry it out LIVE!\u003c/a\u003e | \u003ca href=\"https://github.com/imabp/blogtraversy/issues\"\u003eActive Issues\u003c/a\u003e | \n    \u003ca href=\"https://github.com/imabp/blogtraversy/issues/new\"\u003eIssue Report\u003c/a\u003e    \n\u003cbr/\u003e\nA tool which helps you to fetch your articles from all the publications like medium and hashnode and show it on your custom blog.\n    \u003cbr/\u003e  \u003cbr/\u003e\n\n\u003cbr/\u003e  \n    \u003ca target=\"_blank\" href=\"https://twitter.com/imabptweets/status/1421477678788464641\"\u003e\u003cimg src =\"https://user-images.githubusercontent.com/53480076/127743172-5363089e-54e8-4af5-8698-9d4f7cc25f68.png\" height=\"300px\"/\u003e\u003c/a\u003e\n\n    \n\u003c/p\u003e\n\n\n## Getting Started\n\n#### Installation\n\nThe easiest way to install `blogtraversy` is using NPM. If you have Node.js installed, it is most likely that you have NPM installed as well\n\n```\n$ npm install blogtraversy\n```\n#### Usage\n\n1. Add the following to `index.js` \n\n```js\nconst {getBlogs} = require('blogtraversy')\n\n```\n\n2. A `usernames` config file is recommended. For now, you can use like this.\n\n```js\nconst {getBlogs} = require('blogtraversy')\n\nconst usernames = {\n    mediumUsername:'abirwrites',\n    hashnodeUsername:'imabp'\n}\n```\n\n3. Call GetBlogs based on your requirement passing your `usernames` config.\n\n```js\ngetBlogs('all',usernames).then((res)=\u003econsole.log(\"All Blogs=\u003e\",res));\ngetBlogs('medium',usernames).then((res)=\u003econsole.log(\"Medium Blogs=\u003e\",res));\ngetBlogs('hashnode',usernames).then((res)=\u003econsole.log(\"Hashnode Blogs\",res));\n```\n\n4. The received `res` consists of the following array of objects.\n\n```js\n//getBlogs('all',usernames) \nres= {\n    mediumArticles:[\n        {\n            url: string,\n            title: string,\n            thumbnail: string\n        }\n    ],\n    hashnodePosts:[\n        {\n            url: string,\n            title: string,\n            thumbnail: string\n        }  \n    ]\n}\n\n//getBlogs('medium',usernames) \nres =[  \n        {\n            url: string,\n            title: string,\n            thumbnail: string\n        }\n]\n\n//getBlogs('hashnode',usernames) \nres =[  \n        {\n            url: string,\n            title: string,\n            thumbnail: string\n        }\n]\n```\n\n## Contribution\nFor contributions, please go through active [issues](https://github.com/imabp/blogtraversy/issues) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimabp%2Fblogtraversy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimabp%2Fblogtraversy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimabp%2Fblogtraversy/lists"}