{"id":16222132,"url":"https://github.com/hugodf/md-tweet-embed","last_synced_at":"2026-02-06T20:31:58.312Z","repository":{"id":37791488,"uuid":"302713717","full_name":"HugoDF/md-tweet-embed","owner":"HugoDF","description":"Convert Tweets to Markdown embeds","archived":false,"fork":false,"pushed_at":"2023-08-29T20:32:21.000Z","size":145,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-30T07:40:15.734Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/HugoDF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"HugoDF"}},"created_at":"2020-10-09T17:44:50.000Z","updated_at":"2023-08-18T13:25:40.000Z","dependencies_parsed_at":"2024-10-10T12:21:33.790Z","dependency_job_id":null,"html_url":"https://github.com/HugoDF/md-tweet-embed","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"HugoDF/node-mit-boilerplate","purl":"pkg:github/HugoDF/md-tweet-embed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fmd-tweet-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fmd-tweet-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fmd-tweet-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fmd-tweet-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HugoDF","download_url":"https://codeload.github.com/HugoDF/md-tweet-embed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fmd-tweet-embed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29175223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T20:14:21.878Z","status":"ssl_error","status_checked_at":"2026-02-06T20:14:21.443Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-10T12:11:21.257Z","updated_at":"2026-02-06T20:31:58.294Z","avatar_url":"https://github.com/HugoDF.png","language":"JavaScript","funding_links":["https://github.com/sponsors/HugoDF"],"categories":[],"sub_categories":[],"readme":"# md-tweet-embed\n\nConvert Tweets to Markdown embeds.\n\n## Installation\n\n```sh\nnpm install --save md-tweet-embed\n# or\nyarn add md-tweet-embed\n```\n\n## Usage\n\nFrom a JavaScript file, run through Node.js\n\n```js\nimport { mdTweetEmbed } from 'md-tweet-embed';\nmdTweetEmbed(['https://twitter.com/hugo__df/status/1314635351928041472'])\n.then(([markdownEmbed]) =\u003e {\n  console.log(markdownEmbed);\n  // \u003e md-tweet-embed: an npm module/CLI that takes tweet URLs and turns them to markdown\n  // \u003e\n  // \u003e CLI: npx md-tweet-embed \u003cyour-twitter-urls\u003e\n  // \u003e\n  // \u003e From JS:\n  // \u003e\n  // \u003e const {mdTweetEmbed} = require('md-tweet-embed');\n  // \u003e mdTweetEmbed(['twitter-url']).then(([embed]) =\u003e {}); [pic.twitter.com/2A7hCismd1](https://t.co/2A7hCismd1)\n  // \u003e\n  // \u003e — Hugo (@hugo\\_\\_df) [October 9, 2020](https://twitter.com/hugo__df/status/1314635351928041472?ref_src=twsrc%5Etfw)\n});\n```\n\nAs a CLI:\n\n```sh\nnpx md-tweet-embed https://twitter.com/hugo__df/status/1314635351928041472\n\u003e md-tweet-embed: an npm module/CLI that takes tweet URLs and turns them to markdown\n\u003e\n\u003e CLI: npx md-tweet-embed \u003cyour-twitter-urls\u003e\n\u003e\n\u003e From JS:\n\u003e\n\u003e const {mdTweetEmbed} = require('md-tweet-embed');\n\u003e mdTweetEmbed(['twitter-url']).then(([embed]) =\u003e {}); [pic.twitter.com/2A7hCismd1](https://t.co/2A7hCismd1)\n\u003e\n\u003e — Hugo (@hugo\\_\\_df) [October 9, 2020](https://twitter.com/hugo__df/status/1314635351928041472?ref_src=twsrc%5Etfw)\n```\n\n## Requirements\n\n- Node 18\n- npm v8\n\n## Setup\n\n1. Clone the repository\n2. Run `npm install` installs all required dependencies.\n\n## npm scripts\n\n\u003e Equivalent `npm run \u003cscript\u003e` should also work\n\n- `npm run test` will run all tests (written with uvu).\n- `npm run fmt` will run lint with `--fix` option on all the examples files (and tests).\n\n## LICENSE\n\nCode is licensed under the [MIT License](./LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugodf%2Fmd-tweet-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugodf%2Fmd-tweet-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugodf%2Fmd-tweet-embed/lists"}