{"id":29189407,"url":"https://github.com/coderaiser/node-nomine","last_synced_at":"2025-07-01T23:07:33.884Z","repository":{"id":57312030,"uuid":"77228212","full_name":"coderaiser/node-nomine","owner":"coderaiser","description":"file rename as express middleware","archived":false,"fork":false,"pushed_at":"2019-09-22T11:44:24.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T22:06:28.903Z","etag":null,"topics":["file","javascript","nodejs","rename"],"latest_commit_sha":null,"homepage":"","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-23T13:48:27.000Z","updated_at":"2019-09-22T11:44:26.000Z","dependencies_parsed_at":"2022-09-16T02:51:18.171Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/node-nomine","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/node-nomine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-nomine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-nomine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-nomine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-nomine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/node-nomine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-nomine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260951155,"owners_count":23087654,"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":["file","javascript","nodejs","rename"],"created_at":"2025-07-01T23:07:33.154Z","updated_at":"2025-07-01T23:07:33.797Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nomine [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\nFile rename as express middleware.\n\n## Install\n\n`npm i nomine --save`\n\n## API\n\n```js\nconst express = require('express');\nconst app = express();\n\napp.use(nomine({\n    prefix: '/rename' // default\n});\n\napp.listen(3000, function () {\n    console.log('Example app listening on port 3000!');\n});\n```\n\n## Usage Example\n\nAfter starting web-server with used `nomine` middleware it waits for payload sended on `/rename` url (by default).\nPayload could look this way:\n\n```json\n{\n    \"dir\": \"/\",\n    \"from\": [\n        \"bin\"\n    ],\n    \"to\": [\n        \"bin2\"\n    ]\n}\n```\n\n```sh\n$ curl -X PUT -d '{\"dir\":\"/\",\"from\":[\"bin\"], \"to\": [\"bin2\"]}' http://localhost:3000/rename\nEACCES: permission denied, rename '/bin' -\u003e '/bin2'\n```\n\n## Related\n\n- [Renamify](https://github.com/coderaiser/node-renamify \"Renamify\") - rename group of files from a directory\n\n## License\n\nMIT\n\n[NPMIMGURL]:                https://img.shields.io/npm/v/nomine.svg?style=flat\n[BuildStatusIMGURL]:        https://img.shields.io/travis/coderaiser/node-nomine/master.svg?style=flat\n[DependencyStatusIMGURL]:   https://img.shields.io/david/coderaiser/node-nomine.svg?style=flat\n[LicenseIMGURL]:            https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]:                   https://npmjs.org/package/nomine \"npm\"\n[BuildStatusURL]:           https://travis-ci.org/coderaiser/node-nomine  \"Build Status\"\n[DependencyStatusURL]:      https://david-dm.org/coderaiser/node-nomine \"Dependency Status\"\n[LicenseURL]:               https://tldrlegal.com/license/mit-license \"MIT License\"\n\n[CoverageURL]:              https://coveralls.io/github/coderaiser/node-nomine?branch=master\n[CoverageIMGURL]:           https://coveralls.io/repos/coderaiser/node-nomine/badge.svg?branch=master\u0026service=github\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fnode-nomine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fnode-nomine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fnode-nomine/lists"}