{"id":15809780,"url":"https://github.com/nknapp/detect-rename","last_synced_at":"2025-09-02T11:35:59.716Z","repository":{"id":24880013,"uuid":"28295976","full_name":"nknapp/detect-rename","owner":"nknapp","description":"Detect file renames based on the file contents","archived":false,"fork":false,"pushed_at":"2017-01-18T22:43:11.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T18:55:40.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nknapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-21T10:33:56.000Z","updated_at":"2017-01-18T22:43:10.000Z","dependencies_parsed_at":"2022-07-24T02:46:26.631Z","dependency_job_id":null,"html_url":"https://github.com/nknapp/detect-rename","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nknapp%2Fdetect-rename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nknapp%2Fdetect-rename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nknapp%2Fdetect-rename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nknapp%2Fdetect-rename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nknapp","download_url":"https://codeload.github.com/nknapp/detect-rename/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246563370,"owners_count":20797444,"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-10-05T03:41:09.991Z","updated_at":"2025-04-01T00:39:28.709Z","avatar_url":"https://github.com/nknapp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n------------\n\nThe goal of this package is, to detect file renames based on the file contents, similar to the way `git` does it.\nFiles and contents are provided as javascript object, so this module should not need to access file system and\nmay even work in a browser.\n\n\nExample\n-------\n\n```js\nvar detect = require(\"detect-rename.js\");\n\nconsole.log(detect({\n   \"abc\": \"Lorem ipsum sit desc\",\n   \"cde\": \"Lorem ipsum sit incro\",\n   \"qwertz\": \"poiu\",\n   \"cdeg\": \"Lorem ipsum sit incroa\"\n},{\n   \"abcd\": \"Lorem ipsum sit desca\",\n   \"cdef\": \"Lorem ipsum sit incro\",\n   \"qwertz\": \"poiu\"\n}));\n```\n\nOutput:\n```js\n{\ncdef: { from: 'cde', sim: 1 },\nabcd: { from: 'abc', sim: 0.9629629629629629 }\n}\n```\n\n*See the jsdoc comment for options*\n\n\nChanges\n--------\n\n####0.0.1\n  * Initial checkin\n\n####0.1.0\n  * Changed the output to use the target file as object key. This is more useful, because this is what the target file is like in the\n    currently.\n\n\n\n*Please note that this api is still experimental until version 1.0. Feedback is welcome, although I cannot guarantee any response times at the moment.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnknapp%2Fdetect-rename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnknapp%2Fdetect-rename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnknapp%2Fdetect-rename/lists"}