{"id":20585929,"url":"https://github.com/phocks/spanify","last_synced_at":"2026-04-21T06:31:18.476Z","repository":{"id":76889619,"uuid":"114078195","full_name":"phocks/spanify","owner":"phocks","description":"Convert pairs of anchor tags surrounding text into span tags","archived":false,"fork":false,"pushed_at":"2018-12-04T04:59:47.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T12:52:34.258Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phocks.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-12-13T05:31:19.000Z","updated_at":"2018-12-04T04:59:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"d71cd878-d297-440e-89ff-aba7324b8034","html_url":"https://github.com/phocks/spanify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phocks/spanify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phocks%2Fspanify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phocks%2Fspanify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phocks%2Fspanify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phocks%2Fspanify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phocks","download_url":"https://codeload.github.com/phocks/spanify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phocks%2Fspanify/sbom","scorecard":{"id":731999,"data":{"date":"2025-08-11","repo":{"name":"github.com/phocks/spanify","commit":"cad192acfc4f9a499efdf3dccb745bef70c9da04"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-22T14:41:59.538Z","repository_id":76889619,"created_at":"2025-08-22T14:41:59.538Z","updated_at":"2025-08-22T14:41:59.538Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32080203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"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-11-16T07:09:45.007Z","updated_at":"2026-04-21T06:31:18.471Z","avatar_url":"https://github.com/phocks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spanify\n\nThis is just a helper for CoreMedia to turn anchor tags into spans.\n\nIn CoreMedia put 3 spaces before the text you want to wrap in a span tag. Then select the middle space with your mouse cursor then insert a link (right-click or format menu) then in the title field type the class name you want the span to have. Do the same after the text you want to wrap, highlighting the middle space character and link it with \"end\" in the title field.\n\n*Usage:*\n\n```bash\nnpm install spanify\n```\n```js\nimport { spanify } from \"spanify\";\nspanify();\n```\n\nThis scans the page for these anchor tags and replace them with spans.\n\nEssentially this script scans the DOM for `\u003ca title=\"whatever\"\u003e \u003c/a\u003e some text \u003ca title=\"end\"\u003e \u003c/a\u003e` and converts to `\u003cspan class=\"whatever\"\u003esome text\u003c/span\u003e`\n\nYou can also specify a default class that will be added to the span in addition to any classes specified in CoreMedia by passing an object to the function like this:\n\n```js \nspanify({ defaultClass: \"default\" })\n```\n\n## Hashify\n\nSometimes in CoreMedia we use #hashtag links. If you put a #hastag on its own line it turns into `\u003ca name=\"hashtag\"\u003e \u003c/a\u003e`. This is fine until you want to append content to this element. Any text inside this anchor tag will have link styles applied to it.\n\nTo workaround this we can use this: \n\n```js\nimport { hashify } from \"spanify\";\nhashify();\n```\n\nThis will scan the page for these anchor tags and replace them with `\u003cdiv class=\"whatever\"\u003e\u003c/div\u003e`\n\nYou can also specify a default class that will be added to the div in addition to any classes specified in CoreMedia by passing an object to the function like this:\n\n```js\nhashify({ defaultClass: \"default\" });\n```\n\nTo hashify only certain #hashtag links pass something like this:\n\n```js\nhashify({ hashList: [\"addressinput\", \"incomeinput\"] });\n```\n\n## Classify\n\nApply a class to the next paragraph (or other element)\n\n```js\nclassify(\"class\") // #prefix string to look for \n```\n\neg. #classintro adds `class=\"intro\"` to proceeding paragraph.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphocks%2Fspanify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphocks%2Fspanify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphocks%2Fspanify/lists"}