{"id":15794315,"url":"https://github.com/paulvollmer/jsinspector","last_synced_at":"2025-06-25T18:31:37.741Z","repository":{"id":142507860,"uuid":"94360133","full_name":"paulvollmer/jsinspector","owner":"paulvollmer","description":"find code duplication with dynamic threshold and return report matrix","archived":false,"fork":false,"pushed_at":"2019-05-29T22:53:37.000Z","size":1062,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-04T23:41:22.722Z","etag":null,"topics":["clean-code","code-analysis","duplication","javascript","refactoring"],"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/paulvollmer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-14T18:14:12.000Z","updated_at":"2019-05-29T22:53:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"9957a074-0bfe-4ee6-81c9-714eedd3f415","html_url":"https://github.com/paulvollmer/jsinspector","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/paulvollmer/jsinspector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulvollmer%2Fjsinspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulvollmer%2Fjsinspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulvollmer%2Fjsinspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulvollmer%2Fjsinspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulvollmer","download_url":"https://codeload.github.com/paulvollmer/jsinspector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulvollmer%2Fjsinspector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261930644,"owners_count":23231916,"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":["clean-code","code-analysis","duplication","javascript","refactoring"],"created_at":"2024-10-04T23:41:08.995Z","updated_at":"2025-06-25T18:31:37.701Z","avatar_url":"https://github.com/paulvollmer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsinspector [![Build Status](https://travis-ci.org/paulvollmer/jsinspector.svg?branch=master)](https://travis-ci.org/paulvollmer/jsinspector) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/paulvollmer/jsinspector/blob/master/LICENSE)\n\nDetect copy-pasted and structurally similar JavaScript code based on the `jsinspect` tool but with a automated threshold parameter.\nthe tool will be count the threshold up to the highest number to find the biggest code duplication.\n\n**This is experimental, do not use in production**\n\n\n## installation\n\n```\n# install it as dependencies\nnpm install paulvollmer/jsinspector --save\n\n# or install it globally\nnpm install -g paulvollmer/jsinspector\n```\n\n_nodejs v6 or above is required_\n\n\n## usage as cli\n\n```\njsinspector -f fixtures/simple.js\n```\n\n\n## usage as module\n\n```\ninspector('path/to/source.js', MIN_THRESHOLD, function(report) {\n  console.log(report)\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulvollmer%2Fjsinspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulvollmer%2Fjsinspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulvollmer%2Fjsinspector/lists"}