{"id":29189418,"url":"https://github.com/coderaiser/node-renamify","last_synced_at":"2025-07-01T23:07:40.595Z","repository":{"id":57353419,"uuid":"76739806","full_name":"coderaiser/node-renamify","owner":"coderaiser","description":"Rename group of files from a directory","archived":false,"fork":false,"pushed_at":"2025-03-11T11:14:31.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T23:33:02.610Z","etag":null,"topics":["cloudcmd","directory","file-system","files","fs","javascript","nodejs","rename"],"latest_commit_sha":null,"homepage":null,"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/coderaiser.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","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":"2016-12-17T18:23:14.000Z","updated_at":"2025-03-11T11:14:33.000Z","dependencies_parsed_at":"2022-09-19T03:11:44.365Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/node-renamify","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/node-renamify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-renamify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-renamify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-renamify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-renamify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/node-renamify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-renamify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260721985,"owners_count":23052267,"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":["cloudcmd","directory","file-system","files","fs","javascript","nodejs","rename"],"created_at":"2025-07-01T23:07:39.750Z","updated_at":"2025-07-01T23:07:40.508Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Renamify [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\n[BuildStatusURL]: https://github.com/coderaiser/node-renamify/actions?query=workflow%3A%22Node+CI%22 \"Build Status\"\n[BuildStatusIMGURL]: https://github.com/coderaiser/node-renamify/workflows/Node%20CI/badge.svg\n[NPMIMGURL]: https://img.shields.io/npm/v/renamify.svg?style=flat\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]: https://npmjs.org/package/renamify \"npm\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[CoverageURL]: https://coveralls.io/github/coderaiser/node-renamify?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/node-renamify/badge.svg?branch=master\u0026service=github\n\nRename group of files from a directory.\n\n## Install\n\n```\nnpm i renamify --save\n```\n\n## API\n\n```js\nimport renamify from 'renamify';\n\nconst dir = '/';\nconst from = ['bin'];\n\nconst to = ['super-bin'];\n\nawait renamify(dir, from, to);\n```\n\nFull:\n\n```js\nimport renamify from 'renamify';\n\nconst dir = '/';\nconst from = ['/bin/hello'];\n\nconst to = ['/super-bin'];\n\nawait renamify(dir, from, to\n```\n\nOr with ``try-to-catch`:\n\n```js\nimport renamify from 'renamify';\nimport tryToCatch from 'try-to-catch';\n\nconst dir = '/';\nconst from = ['bin'];\n\nconst to = ['super-bin'];\n\nconst [error] = await tryToCatch(renamify, dir, from, to);\n\nconsole.log(error || 'done');\n```\n\n## Related\n\n- [renamify-cli](https://github.com/coderaiser/node-renamify-cli \"renamify-cli\") - CLI rename group of files from a directory.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fnode-renamify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fnode-renamify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fnode-renamify/lists"}