{"id":16549574,"url":"https://github.com/uiur/link-text","last_synced_at":"2026-05-09T08:10:23.202Z","repository":{"id":141424103,"uuid":"45173487","full_name":"uiur/link-text","owner":"uiur","description":"Autolink text","archived":false,"fork":false,"pushed_at":"2018-05-25T02:14:03.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T04:05:58.733Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uiur.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":"2015-10-29T09:35:48.000Z","updated_at":"2018-05-25T02:14:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"b432b87d-7f38-44b5-94fe-1106d2e79031","html_url":"https://github.com/uiur/link-text","commit_stats":null,"previous_names":["uiureo/link-text"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Flink-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Flink-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Flink-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Flink-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiur","download_url":"https://codeload.github.com/uiur/link-text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241605808,"owners_count":19989612,"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":[],"created_at":"2024-10-11T19:29:55.695Z","updated_at":"2026-05-09T08:10:18.155Z","avatar_url":"https://github.com/uiur.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# link-text\n\n[![npm][npm-image]][npm-url]\n[![travis][travis-image]][travis-url]\n\n[npm-image]: https://img.shields.io/npm/v/link-text.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/link-text\n[travis-image]: https://img.shields.io/travis/uiureo/link-text.svg?style=flat-square\n[travis-url]: https://travis-ci.org/uiureo/link-text\n\nA function to autolink text. It turns text into linked text with anchor tags.\n\n```js\nvar link = require('link-text')\n\nlink('foo https://google.com bar')\n//=\u003e 'foo \u003ca href=\"https://google.com\"\u003ehttps://google.com\u003c/a\u003e bar'\n\nlink('aaa \u003cscript\u003e')\n//=\u003e 'aaa \u0026lt;script\u0026gt;'\n\nlink('https://google.com', { target: '_blank' })\n//=\u003e '\u003ca href=\"https://google.com\" target=\"_blank\"\u003ehttps://google.com\u003c/a\u003e'\n\nlink('https://ja.wikipedia.org/wiki/%E5%AF%BF%E5%8F%B8')\n//=\u003e '\u003ca href=\"https://ja.wikipedia.org/wiki/%E5%AF%BF%E5%8F%B8\"\u003ehttps://ja.wikipedia.org/wiki/寿司\u003c/a\u003e'\n```\n\n## Install\n\n```\nnpm install link-text\n```\n\n\n## License\n\n[ISC](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiur%2Flink-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiur%2Flink-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiur%2Flink-text/lists"}