{"id":43197212,"url":"https://github.com/flytam/filenamify","last_synced_at":"2026-02-01T05:39:05.633Z","repository":{"id":57511038,"uuid":"238688812","full_name":"flytam/filenamify","owner":"flytam","description":"Convert a string to a valid safe filename on Golang","archived":false,"fork":false,"pushed_at":"2024-04-07T08:59:33.000Z","size":20,"stargazers_count":41,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T05:36:35.224Z","etag":null,"topics":["convert","filenamify","filepath","golang","valid"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/flytam.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-02-06T12:55:03.000Z","updated_at":"2025-06-18T04:09:24.000Z","dependencies_parsed_at":"2024-04-07T09:47:27.807Z","dependency_job_id":null,"html_url":"https://github.com/flytam/filenamify","commit_stats":{"total_commits":12,"total_committers":6,"mean_commits":2.0,"dds":0.75,"last_synced_commit":"17837a7e27fdc81e3a6829322fdd72c935bf7d4e"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/flytam/filenamify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytam%2Ffilenamify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytam%2Ffilenamify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytam%2Ffilenamify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytam%2Ffilenamify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flytam","download_url":"https://codeload.github.com/flytam/filenamify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytam%2Ffilenamify/sbom","scorecard":{"id":405221,"data":{"date":"2025-08-11","repo":{"name":"github.com/flytam/filenamify","commit":"17837a7e27fdc81e3a6829322fdd72c935bf7d4e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"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":"Code-Review","score":3,"reason":"Found 3/9 approved changesets -- score normalized to 3","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":"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 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"}},{"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"}}]},"last_synced_at":"2025-08-18T21:03:16.778Z","repository_id":57511038,"created_at":"2025-08-18T21:03:16.779Z","updated_at":"2025-08-18T21:03:16.779Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28970177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T05:34:56.429Z","status":"ssl_error","status_checked_at":"2026-02-01T05:34:56.126Z","response_time":56,"last_error":"SSL_read: 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":["convert","filenamify","filepath","golang","valid"],"created_at":"2026-02-01T05:39:05.001Z","updated_at":"2026-02-01T05:39:05.626Z","avatar_url":"https://github.com/flytam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## go-filenamify\n\n\n[![Build Status](https://travis-ci.com/flytam/filenamify.svg?branch=master)](https://travis-ci.com/flytam/filenamify)\n\nConvert a string to a valid safe filename\n\n#### Installation\n\n```bash\n$ go get github.com/flytam/filenamify\n```\n\n(optional) To run unit tests:\n\n```bash\ngo test -v\n```\n\n#### Usage\n\n```go\npackage main\nimport (\n\t\"github.com/flytam/filenamify\"\n\t\"fmt\"\n)\n\nfunc main() {\n\toutput,err :=filenamify.Filenamify(`\u003cfoo/bar\u003e`,filenamify.Options{})\n    fmt.Println(output,err) // =\u003e foo!bar,nil\n\n    //---\n    output,err =filenamify.Filenamify(`foo:\"bar\"`,filenamify.Options{\n    \tReplacement:\"🐴\",\n    })\n    fmt.Println(output,err) // =\u003e foo🐴bar,nil\n\n\n\toutput,err =filenamify.FilenamifyV2(`\u003cfoo/bar\u003e`)\n    fmt.Println(output,err) // =\u003e foo!bar,nil\n\n    //---\n    output,err =filenamify.FilenamifyV2(`foo:\"bar\"`,func(options *Options) {\n\t\toptions.Replacement = \"🐴\"\n\t})\n    fmt.Println(output,err) // =\u003e foo🐴bar,nil\n\n}\n\n\n\n```\n\n#### API\n\n- `Filenamify(str string, options Options) (string, error)`\n\n- `func Path(filePath string, options Options) (string, error)`\n\n```go\ntype Options struct {\n\t// String for substitution\n\tReplacement string// default: \"!\"\n\t// maxlength\n\tMaxLength int// default: 100\n}\n```\nFilenamifyV2 and  PathV2 are added in v1.1.0\n- `func FilenamifyV2(str string, optFuns ...func(options *Options)) (string, error)`\n- `func PathV2(str string, optFuns ...func(options *Options)) (string, error)`\n\n#### Related\n\n- [Node-filenamify](https://github.com/sindresorhus/filenamify)\n\n#### LICENSE\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflytam%2Ffilenamify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflytam%2Ffilenamify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflytam%2Ffilenamify/lists"}