{"id":26224253,"url":"https://github.com/antaresvalle/gettinglinksfrommarkdown","last_synced_at":"2026-04-10T12:04:40.453Z","repository":{"id":57250705,"uuid":"140887551","full_name":"antaresvalle/gettingLinksFromMarkdown","owner":"antaresvalle","description":"Getting links from Markdown it’s a module that receives a string in Markdown format and extracts all the links founded, returning an array of objects.","archived":false,"fork":false,"pushed_at":"2018-09-04T20:27:18.000Z","size":3170,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T10:09:16.696Z","etag":null,"topics":["babel","es6-javascript","javascript","materialize-css","mocha-tests","node-js","npm","regex"],"latest_commit_sha":null,"homepage":"https://antaresvalle.github.io/gettingLinksFromMarkdown/","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/antaresvalle.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":"2018-07-13T19:52:41.000Z","updated_at":"2025-02-21T07:15:11.000Z","dependencies_parsed_at":"2022-08-24T16:51:52.691Z","dependency_job_id":null,"html_url":"https://github.com/antaresvalle/gettingLinksFromMarkdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antaresvalle%2FgettingLinksFromMarkdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antaresvalle%2FgettingLinksFromMarkdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antaresvalle%2FgettingLinksFromMarkdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antaresvalle%2FgettingLinksFromMarkdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antaresvalle","download_url":"https://codeload.github.com/antaresvalle/gettingLinksFromMarkdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243268057,"owners_count":20263803,"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":["babel","es6-javascript","javascript","materialize-css","mocha-tests","node-js","npm","regex"],"created_at":"2025-03-12T18:18:54.564Z","updated_at":"2025-12-25T12:31:37.610Z","avatar_url":"https://github.com/antaresvalle.png","language":"JavaScript","readme":"# Getting links from Markdown\n\n***\n\nGetting links from Markdown it’s a module that receives a string in Markdown format and extracts all the links founded, returning an array of objects.\n\n![Preview](https://user-images.githubusercontent.com/37418496/45055895-db6f9880-b056-11e8-9642-ca36ef371b3e.jpg)\n\nVisit the test page at [https://antaresvalle.github.io/gettingLinksFromMarkdown/](https://antaresvalle.github.io/gettingLinksFromMarkdown/) \n\n\n## Usage\nInstall the next command in the terminal:\n\n```\nnpm install getting-links-from-markdown\n```\n\nUse the following template to implement the package:\n\n```js\nconst gettingLinksFromMarkdown = require('./dist/gettingLinksFromMarkdown');\n\nconst markdownString = `# Lorem ipsum\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\nincididunt ut [labore](https://en.wiktionary.org/wiki/labore) et\n[dolore](https://en.wiktionary.org/wiki/dolore) magna aliqua. Ut enim ad minim\nveniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\nconsequat.\n\n[foo](http://foo.com)\n\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu\nfugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in\nculpa qui officia deserunt mollit anim id est laborum.`\n\nconst links = gettingLinksFromMarkdown(markdownString);\n\nconsole.log(links);\n// [\n//   { href: 'https://en.wiktionary.org/wiki/labore', text: 'labore' },\n//   { href: 'https://en.wiktionary.org/wiki/dolore', text: 'dolore' },\n//   { href: 'http://foo.com', text: 'foo' },\n// ]\n\n```\n\n\n### Node\nInclude the following require function:\n\n```\nconst gettingLinksFromMarkdown = require('./dist/gettingLinksFromMarkdown');\n```\n\n### Browser\nInclude it in your HTML:\n\n```html\n\u003cscript src=\"node_modules/getting-links-from-markdown/dist/gettingLinksFromMarkdown.js\"\u003e\u003c/script\u003e\n```\n\n### NPM package\n\n[https://www.npmjs.com/package/getting-links-from-markdown](https://www.npmjs.com/package/getting-links-from-markdown) \n\n\n### Authors\nAntares Valle \u0026 Jesica Domínguez\n\n## Desarrollado para \n[Laboratoria](http://laboratoria.la)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantaresvalle%2Fgettinglinksfrommarkdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantaresvalle%2Fgettinglinksfrommarkdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantaresvalle%2Fgettinglinksfrommarkdown/lists"}