{"id":21239255,"url":"https://github.com/tinacious/migrate-wordpress-blog-hashnode","last_synced_at":"2025-10-16T07:09:20.172Z","repository":{"id":40754600,"uuid":"284827740","full_name":"tinacious/migrate-wordpress-blog-hashnode","owner":"tinacious","description":"Some scripts I used to migrate the blog part of my website off of WordPress and onto Hashnode","archived":false,"fork":false,"pushed_at":"2022-12-11T16:37:05.000Z","size":96,"stargazers_count":12,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T23:53:47.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blog.tinaciousdesign.com/migrating-my-blog-from-wordpress-to-hashnode-ckdgzbasn00zcdns1bmm2dj76","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/tinacious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"tinacious"}},"created_at":"2020-08-03T23:21:09.000Z","updated_at":"2023-04-25T22:12:10.000Z","dependencies_parsed_at":"2023-01-27T03:05:16.143Z","dependency_job_id":null,"html_url":"https://github.com/tinacious/migrate-wordpress-blog-hashnode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tinacious/migrate-wordpress-blog-hashnode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fmigrate-wordpress-blog-hashnode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fmigrate-wordpress-blog-hashnode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fmigrate-wordpress-blog-hashnode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fmigrate-wordpress-blog-hashnode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinacious","download_url":"https://codeload.github.com/tinacious/migrate-wordpress-blog-hashnode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinacious%2Fmigrate-wordpress-blog-hashnode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279164497,"owners_count":26117718,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-21T00:42:38.451Z","updated_at":"2025-10-16T07:09:20.145Z","avatar_url":"https://github.com/tinacious.png","language":"JavaScript","funding_links":["https://github.com/sponsors/tinacious"],"categories":[],"sub_categories":[],"readme":"# WordPress-Hashnode Migrator\n\nThis is a set of scripts and instructions to facilitate migrating a blog from WordPress to Hashnode.\n\n## Usage\n\nUse the following guide as a walkthrough for this process:\n\n[Migrating my blog from WordPress to Hashnode](https://blog.tinaciousdesign.com/migrating-my-blog-from-wordpress-to-hashnode-ckdgzbasn00zcdns1bmm2dj76)\n\n\n\n## Scripts\n\nInstall dependencies:\n\n```\nnpm install\n```\n\n### Set up your environment variables\n\nSet the required Hashnode secrets as environment variables in the `.env` file. See `.env.sample` for an example.\n\n```\nmv .env.sample .env\n```\n\nOpen the `.env` file and edit it.\n\n\n### Clean the posts\n\nThis operation is like drinking a kale and cucumber smoothie. It processes the posts in `./posts.json` and performs the following actions:\n\n- removes dirty attributes from content HTML\n- converts post content to Markdown\n- writes a new file in `./posts/cleaned.json`\n\n\n```\nnpm run cleanse\n```\n\n### Publish new posts\n\nOnce your posts are ready to be published, run the following script.\n\n```\nnpm run migrate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinacious%2Fmigrate-wordpress-blog-hashnode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinacious%2Fmigrate-wordpress-blog-hashnode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinacious%2Fmigrate-wordpress-blog-hashnode/lists"}