{"id":15502412,"url":"https://github.com/matsubara0507/mdium","last_synced_at":"2025-04-22T23:12:31.224Z","repository":{"id":43063740,"uuid":"155860866","full_name":"matsubara0507/mdium","owner":"matsubara0507","description":"Send post written by Markdown to Medium","archived":false,"fork":false,"pushed_at":"2023-05-05T14:07:52.000Z","size":1269,"stargazers_count":3,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T23:12:26.476Z","etag":null,"topics":["haskell-application"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/matsubara0507.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-11-02T12:08:20.000Z","updated_at":"2022-02-03T08:07:09.000Z","dependencies_parsed_at":"2025-03-04T15:42:46.949Z","dependency_job_id":null,"html_url":"https://github.com/matsubara0507/mdium","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/matsubara0507%2Fmdium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsubara0507%2Fmdium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsubara0507%2Fmdium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsubara0507%2Fmdium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matsubara0507","download_url":"https://codeload.github.com/matsubara0507/mdium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250337946,"owners_count":21414104,"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":["haskell-application"],"created_at":"2024-10-02T09:09:44.248Z","updated_at":"2025-04-22T23:12:31.200Z","avatar_url":"https://github.com/matsubara0507.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mdium\n\n## Requirement\n\n- [Haskell Stack](https://docs.haskellstack.org/en/stable/README/) or Docker\n- Medium integration token\n    - you can generate in [medium settigns](https://medium.com/me/settings).\n\n## Install\n\nClone this repository:\n\n```\n$ git clone https://github.com/matsubara0507/mdium.git\n$ cd mdium\n```\n\nInstall with stack tool:\n\n```\n$ stack install mdium\n```\n\n### Install with Docker\n\nUse https://github.com/users/matsubara0507/packages/container/mdium\n\n```\n$ docker pull ghcr.io/matsubara0507/mdium\n```\n\nUse command:\n\n```\n$ docker run --rm --env-file=\"$HOME/.env\" -v `pwd`:/work -w /work ghcr.io/matsubara0507/mdium example/example.md\n```\n\n## Usage\n\n```\n$ mdium --help\nmdium [options] [input-file]\n      --help                Show this help text\n      --version             Show version\n  -v  --verbose             Enable verbose mode: verbosity level \"debug\"\n      --me                  Call Medium `me` API\n      --title=TEXT          Specify title of story that post to medium\n      --org=PUBLICATION_ID  Post story to PUBLICATION_ID organization\n      --publications        Call Medium `publications` API\n      --gist=TEXT           Replace code block to gist link, TEXT is prefix for gist file name\n```\n\nSet Medium integration token to `MEDIUM_TOKEN` environment (use `./.env` or `~/.env`).\nCan check to validate your token by executing `medium --me` command:\n\n```\n$ mdium --me\nHi MATSUBARA Nobutada!!\n```\n\nIf post [`examle/example.md`](example/example.md) to Medium:\n\n```\n$ mdium --gist=mdium-example- ./example/examle.md\npost success, browse to: https://medium.com/@nobutada/f40bd8e72f3e\n```\n\nthen generate story like below in Medium:\n\n![](example/example.png)\n\n## For Development\n\n### Build with Docker\n\n```\n$ stack --docker --local-bin-path=./bin install\n$ docker build -t matsubara0507/mdium . --build-arg local_bin_path=./bin\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsubara0507%2Fmdium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatsubara0507%2Fmdium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsubara0507%2Fmdium/lists"}