{"id":31425063,"url":"https://github.com/es-shims/es-string-html-methods","last_synced_at":"2025-09-30T04:55:22.145Z","repository":{"id":57227070,"uuid":"402208094","full_name":"es-shims/es-string-html-methods","owner":"es-shims","description":"An ES-spec-compliant shim/polyfill/replacement for the Annex B String.prototype HTML methods that works as far down as ES3","archived":false,"fork":false,"pushed_at":"2025-03-14T15:27:44.000Z","size":93,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-09-11T11:36:30.436Z","etag":null,"topics":["anchor","big","blink","bold","ecmascript","fixed","fontcolor","fontsize","html","italics","javascript","link","polyfill","shim","small","strike","string","sub","sup"],"latest_commit_sha":null,"homepage":"","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/es-shims.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":["ljharb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/es5-shim","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-09-01T21:29:56.000Z","updated_at":"2025-03-14T15:27:48.000Z","dependencies_parsed_at":"2025-03-14T06:33:43.358Z","dependency_job_id":null,"html_url":"https://github.com/es-shims/es-string-html-methods","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/es-shims/es-string-html-methods","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fes-string-html-methods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fes-string-html-methods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fes-string-html-methods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fes-string-html-methods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/es-shims","download_url":"https://codeload.github.com/es-shims/es-string-html-methods/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fes-string-html-methods/sbom","scorecard":{"id":382160,"data":{"date":"2025-08-11","repo":{"name":"github.com/es-shims/es-string-html-methods","commit":"0eb755be2c93458c5e18e16efbf95e166edcec1f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/node-aught.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/es-shims/es-string-html-methods/node-aught.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/node-pretest.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/es-shims/es-string-html-methods/node-pretest.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/node-tens.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/es-shims/es-string-html-methods/node-tens.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rebase.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/es-shims/es-string-html-methods/rebase.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/require-allow-edits.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/es-shims/es-string-html-methods/require-allow-edits.yml/main?enable=pin","Info:   0 out of   5 third-party GitHubAction dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node-aught.yml:1","Warn: no topLevel permission defined: .github/workflows/node-pretest.yml:1","Warn: no topLevel permission defined: .github/workflows/node-tens.yml:1","Warn: no topLevel permission defined: .github/workflows/rebase.yml:1","Warn: no topLevel permission defined: .github/workflows/require-allow-edits.yml:1","Info: no jobLevel write permissions found"],"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Security-Policy","score":9,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/es-shims/.github/SECURITY.md:1","Info: Found linked content: github.com/es-shims/.github/SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: github.com/es-shims/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-18T15:43:17.481Z","repository_id":57227070,"created_at":"2025-08-18T15:43:17.481Z","updated_at":"2025-08-18T15:43:17.481Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277632371,"owners_count":25850734,"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","status":"online","status_checked_at":"2025-09-30T02:00:09.208Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["anchor","big","blink","bold","ecmascript","fixed","fontcolor","fontsize","html","italics","javascript","link","polyfill","shim","small","strike","string","sub","sup"],"created_at":"2025-09-30T04:55:19.616Z","updated_at":"2025-09-30T04:55:22.138Z","avatar_url":"https://github.com/es-shims.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/es5-shim"],"categories":[],"sub_categories":[],"readme":"# es-string-html-methods \u003csup\u003e[![Version Badge][npm-version-svg]][package-url]\u003c/sup\u003e\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nAn ES-spec-compliant shim/polyfill/replacement for the Annex B String.prototype HTML methods that works as far down as ES3\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) “multi” interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-additional-properties-of-the-string.prototype-object).\n\nBecause the `String.prototype` HTML methods depend on a receiver (the `this` value), the main export in each subdirectory takes the string to operate on as the first argument.\n\nThe main export of the package itself is simply an array of the available directory names. It’s sole intended use is for build tooling and testing.\n\n## Supported methods\n\n - [`String.prototype.anchor`](https://tc39.es/ecma262/#sec-string.prototype.anchor)\n - [`String.prototype.big`](https://tc39.es/ecma262/#sec-string.prototype.big)\n - [`String.prototype.blink`](https://tc39.es/ecma262/#sec-string.prototype.blink)\n - [`String.prototype.bold`](https://tc39.es/ecma262/#sec-string.prototype.bold)\n - [`String.prototype.fixed`](https://tc39.es/ecma262/#sec-string.prototype.fixed)\n - [`String.prototype.fontcolor`](https://tc39.es/ecma262/#sec-string.prototype.fontcolor)\n - [`String.prototype.fontsize`](https://tc39.es/ecma262/#sec-string.prototype.fontsize)\n - [`String.prototype.italics`](https://tc39.es/ecma262/#sec-string.prototype.italics)\n - [`String.prototype.link`](https://tc39.es/ecma262/#sec-string.prototype.link)\n - [`String.prototype.small`](https://tc39.es/ecma262/#sec-string.prototype.small)\n - [`String.prototype.strike`](https://tc39.es/ecma262/#sec-string.prototype.strike)\n - [`String.prototype.sub`](https://tc39.es/ecma262/#sec-string.prototype.sub)\n - [`String.prototype.sup`](https://tc39.es/ecma262/#sec-string.prototype.sup)\n\n## Getting started\n\n```sh\nnpm install --save es-string-html-methods\n```\n\n## Usage/Examples\n\n```js\nvar blink = require('es-string-html-methods/blink');\nvar link = require('es-string-html-methods/link');\nvar assert = require('assert');\n\nassert.equal(\n\tblink('a'),\n\t'\u003cblink\u003ea\u003c/blink\u003e'\n);\nassert.equal(\n\tlink('a', 'b'),\n\t'\u003ca href=\"b\"\u003ea\u003c/a\u003e'\n);\n```\n\n```js\nrequire('./auto'); // shim all of the methods\n\nrequire('./anchor/auto'); // shim the “anchor” method\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/es-string-html-methods\n[npm-version-svg]: https://versionbadg.es/es-shims/es-string-html-methods.svg\n[deps-svg]: https://david-dm.org/es-shims/es-string-html-methods.svg\n[deps-url]: https://david-dm.org/es-shims/es-string-html-methods\n[dev-deps-svg]: https://david-dm.org/es-shims/es-string-html-methods/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/es-string-html-methods#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/es-string-html-methods.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/es-string-html-methods.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/es-string-html-methods.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=es-string-html-methods\n[codecov-image]: https://codecov.io/gh/es-shims/es-string-html-methods/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/es-string-html-methods/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/es-string-html-methods\n[actions-url]: https://github.com/es-shims/es-string-html-methods/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2Fes-string-html-methods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fes-shims%2Fes-string-html-methods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2Fes-string-html-methods/lists"}