{"id":16432635,"url":"https://github.com/teles/link-builder","last_synced_at":"2026-03-11T01:02:16.176Z","repository":{"id":143886171,"uuid":"104833681","full_name":"teles/link-builder","owner":"teles","description":"A automate link building tool perfect for front-end development","archived":false,"fork":false,"pushed_at":"2017-10-02T13:22:15.000Z","size":14,"stargazers_count":13,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T17:03:03.064Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://codepen.io/teles/pen/KXaZjN?editors=1011","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/teles.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-26T03:54:36.000Z","updated_at":"2025-03-06T01:11:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"90235f9b-5eaa-43a5-9a68-8a3dabeec613","html_url":"https://github.com/teles/link-builder","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/teles/link-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teles%2Flink-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teles%2Flink-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teles%2Flink-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teles%2Flink-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teles","download_url":"https://codeload.github.com/teles/link-builder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teles%2Flink-builder/sbom","scorecard":{"id":873241,"data":{"date":"2025-08-11","repo":{"name":"github.com/teles/link-builder","commit":"a6282e0fe50134b8f079f6719a83ece7505053a5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T04:57:37.260Z","repository_id":143886171,"created_at":"2025-08-24T04:57:37.260Z","updated_at":"2025-08-24T04:57:37.260Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30364608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-11T08:43:57.037Z","updated_at":"2026-03-11T01:02:16.150Z","avatar_url":"https://github.com/teles.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cbr\u003e\n   \u003cimg src=\"https://openclipart.org/image/160px/svg_to_png/287669/link-builder.png\u0026disposition=attachment\" alt=\"Link Builder\" title=\"Link Builder by  cliparteles ( https://openclipart.org/user-detail/cliparteles )\" /\u003e\n  \u003cbr\u003e\n  \u003ch1 align=\"center\"\u003eLink Builder\u003c/h1\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e  \n  The power to generate your html anchors using javascript.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cp align=\"center\"\u003e\u003cstrong\u003ePerfect for SPAs and SEO.\u003c/strong\u003e\u003c/p\u003e\n  \u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.codacy.com/app/josetelesmaciel/link-builder?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=teles/link-builder\u0026amp;utm_campaign=Badge_Grade\"\u003e\u003cimg src=\"https://api.codacy.com/project/badge/Grade/edd7aadb99f2426592d0b9a4aeb5f5aa\"/\u003e\u003c/a\u003e  \n    \u003ca href=\"https://www.npmjs.com/package/link-builder\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/link-builder.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e \n\n\n## Common usage\n\nThe `LinkBuilder` function can be used as a constructor or literal function to parse any `String` or `HTMLElement` to include html anchors in it.\n\nUse `LinkBuilder` to easily include anchors to your markup, such as:\n\n**Before LinkBuilder:**  \n```html \n\u003cp\u003e In the field of search engine optimization, link building describes actions aimed at increasing the number and quality of inbound links to a webpage with the goal of increasing the search engine rankings of that page or website.\u003c/p\u003e\n```\n\n**After LinkBuilder:**\n```html \n\u003cp\u003e In the field of \u003ca href=\\\"https://en.wikipedia.org/wiki/Search_engine_optimization\\\"\u003esearch engine optimization\u003c/a\u003e, link building describes actions aimed at increasing the number and quality of \u003ca href=\\\"https://en.wikipedia.org/wiki/Backlink\\\"\u003einbound links\u003c/a\u003e to a webpage with the goal of increasing the search engine rankings of that page or website.\u003c/p\u003e\n```\n\n**Used `LinkBuilder` configuration to create above result:**\n\n```javascript\nnew LinkBuilder(htmlContent, [{\n          anchor: \"https://en.wikipedia.org/wiki/Search_engine_optimization\",\n          keyword: \"search engine optimization\"\n        },\n        {\n          anchor: \"https://en.wikipedia.org/wiki/Backlink\",\n          keyword: \"inbound links\"\n        }\n    ]) \n```\n\n\n## Installation\n\n```bash\nnpm install --save link-builder \n```\n\nOr get the [latest version from unpkg.com](https://unpkg.com/link-builder@0.6.5/release/link-builder.js). \n\n## Parameters\n\nThere are two mandatory parameters for `LinkBuilder`.\n\n\u003cimg src=\"https://placeholdit.imgix.net/~text?txtsize=22\u0026txtclr=fff\u0026bg=28a831\u0026txt=Content\u0026w=100\u0026h=48\" align=\"left\"\u003e\n\u003cimg src=\"https://placeholdit.imgix.net/~text?txtsize=22\u0026txtclr=fff\u0026bg=fbae3c\u0026txt=Replacements\u0026w=150\u0026h=48\"\u003e\n\n``content``:\n\n\u003e is any `String` or `HTMLElement` used as input for `LinkBuilder`. \n\n``replacements``:\n\n\u003e is a Array of Objects containing each one optional and required properties:\n\n### Properties for each replacement:\n\n| property    | required | description                                             | example                                  |\n|-------------|----------|---------------------------------------------------------|------------------------------------------|\n| anchor      | true     | anchor text to be used as href                          | https://en.wikipedia.org/wiki/JavaScript |\n| keyword     | true     | String keyword to be matched                            | Javascript                               |\n| insensitive | false    | Boolean to on/off case insentive match. Default `false` | true                                     |\n| max         | false    | Number. Max number of matches for `keyword`.            | 3                                        |\n\n\n## Examples\nComing soon\n\n## Contributing\nComing soon\n\n## License\nMIT - Jota Teles - 2017\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteles%2Flink-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteles%2Flink-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteles%2Flink-builder/lists"}