{"id":15008566,"url":"https://github.com/egomobile/sanitize_filename","last_synced_at":"2025-10-03T16:31:37.025Z","repository":{"id":37556240,"uuid":"505846586","full_name":"egomobile/sanitize_filename","owner":"egomobile","description":"Dart / Flutter package, which replaces characters in strings that are illegal/unsafe for filenames.","archived":true,"fork":false,"pushed_at":"2022-12-24T17:09:52.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-16T11:53:17.057Z","etag":null,"topics":["dart","dart-lang","dart-package","dart2","dartlang","dartlanguage","escape","file","filename","flutter","name","package","sanitize","sanitize-filename","sanitizer","validate","validation"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/sanitize_filename","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egomobile.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}},"created_at":"2022-06-21T13:05:01.000Z","updated_at":"2024-12-04T11:56:17.000Z","dependencies_parsed_at":"2023-01-30T21:01:10.176Z","dependency_job_id":null,"html_url":"https://github.com/egomobile/sanitize_filename","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egomobile%2Fsanitize_filename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egomobile%2Fsanitize_filename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egomobile%2Fsanitize_filename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egomobile%2Fsanitize_filename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egomobile","download_url":"https://codeload.github.com/egomobile/sanitize_filename/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235155999,"owners_count":18944824,"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":["dart","dart-lang","dart-package","dart2","dartlang","dartlanguage","escape","file","filename","flutter","name","package","sanitize","sanitize-filename","sanitizer","validate","validation"],"created_at":"2024-09-24T19:19:22.758Z","updated_at":"2025-10-03T16:31:36.704Z","avatar_url":"https://github.com/egomobile.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"Dart package, which is a clone of the popular [sanitize-filename](https://www.npmjs.com/package/sanitize-filename) npm module by [Parsha Pourkhomami](https://github.com/parshap).\n\n## Usage\n\n```dart\nimport 'package:sanitize_filename/sanitize_filename.dart';\n\nvoid main() {\n  const unsafeUserInput = \"~/.\\u0000ssh/authorized_keys\";\n\n  final safeUserInput1 = sanitizeFilename(unsafeUserInput);\n  final safeUserInput2 = sanitizeFilename(unsafeUserInput, replacement: '-');\n\n  // \"~.sshauthorized_keys\"\n  print(\"safeUserInput1: $safeUserInput1\");\n  // \"~-.-ssh-authorized_keys\"\n  print(\"safeUserInput2: $safeUserInput2\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegomobile%2Fsanitize_filename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegomobile%2Fsanitize_filename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegomobile%2Fsanitize_filename/lists"}