{"id":13595815,"url":"https://github.com/liuwave/picgo-plugin-rename-file","last_synced_at":"2025-04-09T13:33:31.941Z","repository":{"id":47505309,"uuid":"282113545","full_name":"liuwave/picgo-plugin-rename-file","owner":"liuwave","description":"A PicGo plugin for elegant file name prefix","archived":false,"fork":true,"pushed_at":"2021-05-27T16:29:48.000Z","size":85,"stargazers_count":83,"open_issues_count":15,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-22T10:21:28.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"gclove/picgo-plugin-super-prefix","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liuwave.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}},"created_at":"2020-07-24T03:29:46.000Z","updated_at":"2024-04-18T10:12:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/liuwave/picgo-plugin-rename-file","commit_stats":null,"previous_names":["liuwave/picgo-plugin-super-prefix"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuwave%2Fpicgo-plugin-rename-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuwave%2Fpicgo-plugin-rename-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuwave%2Fpicgo-plugin-rename-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuwave%2Fpicgo-plugin-rename-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liuwave","download_url":"https://codeload.github.com/liuwave/picgo-plugin-rename-file/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223394752,"owners_count":17138610,"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":[],"created_at":"2024-08-01T16:01:58.286Z","updated_at":"2024-11-06T18:31:37.848Z","avatar_url":"https://github.com/liuwave.png","language":"TypeScript","funding_links":[],"categories":["TypeScript",":rocket: Plugin for PicGo"],"sub_categories":[],"readme":"## picgo-plugin-rename-file\n\n\n\nA PicGo plugin for customizing file name.\n\n可以很自定义生成文件存储路径的插件，文件(包括路径)名称支持日期、随机字符串、文件MD5、原文件名、原文件目录结构等规则。\n\n更多需求，欢迎PR或提ISSUE。\n\n\n---\n\n## 例如\n\n`2020/07/24/674b96a992fac527a8332ac4adc89a14-filename-fa2c97-19-44-17.png`\n\n---\n\n## 修改配置参数后生效\n\n![配置](https://raw.githubusercontent.com/liuwave/picgo-plugin-rename-file/master/images/config.png)\n\n\nformat，文件(路径)格式，默认为空，自定义文件路径及文件名，例如：\n\n    fix-dir/{localFolder:2}/{y}/{m}/{d}/{h}-{i}-{s}-{hash}-{origin}-{rand:6}\n    \n上传文件名为`/images/test/localImage.jpg`的文件时，会重命名为\n\n    fix-dir/images/test/2020/07/24/21-40-31-36921a9c364ed4789d4bc684bcb81d62-localImage-fa2c97.jpg\n\n\n\n命名规则：\n\n- {y} 年，4位\n- {m} 月，2位\n- {d} 日期，2位\n- {h} 小时，2位\n- {i} 分钟，2位\n- {s} 秒，2位\n- {ms} 毫秒，3位(**v1.0.4**)\n- {timestamp} 时间戳(秒)，10位(**v1.0.4**)\n- {hash}，文件的md5值，32位\n- {origin}，文件原名（会去掉后缀）\n- {rand:\u0026lt;count\u0026gt;}, 随机数，\u0026lt;count\u0026gt;表示个数，默认为6个，示例：{rand：32}、{rand}\n- {localFolder:\u0026lt;count\u0026gt;}, \u0026lt;count\u0026gt;表示层级 ，默认为1，示例：{localFolder:6}、{localFolder}\n\n\n---\n### 版权声明\n\nMIT\n\n从 [gclove/picgo-plugin-super-prefix](https://github.com/gclove/picgo-plugin-super-prefix) fork而来，\n做了些修改。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuwave%2Fpicgo-plugin-rename-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliuwave%2Fpicgo-plugin-rename-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuwave%2Fpicgo-plugin-rename-file/lists"}