{"id":16928344,"url":"https://github.com/ptrcnull/deobf","last_synced_at":"2025-04-11T17:43:20.779Z","repository":{"id":130413378,"uuid":"182447741","full_name":"ptrcnull/deobf","owner":"ptrcnull","description":"ECMAScript deobfuscator... kinda","archived":false,"fork":false,"pushed_at":"2021-12-13T14:10:43.000Z","size":29,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T13:46:00.659Z","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/ptrcnull.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-20T19:42:39.000Z","updated_at":"2022-09-04T10:05:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"f54c1bb8-006e-4ff9-9813-f0ed3b2436f0","html_url":"https://github.com/ptrcnull/deobf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrcnull%2Fdeobf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrcnull%2Fdeobf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrcnull%2Fdeobf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrcnull%2Fdeobf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptrcnull","download_url":"https://codeload.github.com/ptrcnull/deobf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248451838,"owners_count":21105952,"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-13T20:36:30.879Z","updated_at":"2025-04-11T17:43:20.772Z","avatar_url":"https://github.com/ptrcnull.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deobf\n\nSemi-modular ECMAScript deobfuscator\n\n## Modules\n\n### [Add if braces](lib/addIfBraces.js)\n\n```js\n// before\nif (something) doSomething()\n\n// after\nif (something) {\n    doSomething()\n}\n```\n\n### [Array bool](lib/arrayBool.js)\n\n```js\n// before\nconsole.log(![])\nconsole.log(!![])\n\n// after\nconsole.log(false)\nconsole.log(true)\n```\n\n### [Array obfuscation](lib/arrayObfuscation.js)\n\nTODO\n\n### [Comma separated statements](lib/commaSeparatedStatements.js)\n\n```js\n// before\nfunction test() {\n    return console.log('b'), 'a'\n}\n\n// after\nfunction test() {\n  console.log('b')\n  return 'a'\n}\n```\n\n### [Comparison order](lib/comparisonOrder.js)\n\n```js\n// before\nif (null == a) {}\n\n// after\nif (a == null) {}\n```\n\n### [Expand if shortcut](lib/expandIfShortcut.js)\n\n```js\n// before\na \u0026\u0026 console.log('b')\n\n// after\nif (a) {\n    console.log('b')\n}\n```\n\n### [Expand sequence expression](lib/expandSequenceExpression.js)\n\nTODO\n\n### [Function to class](lib/functionToClass.js)\n\nTODO\n\n### [Nested blocks](lib/nestedBlocks.js)\n\n```js\n// before\nfunction test() {\n    {\n        console.log('a')\n    }\n}\n\n// after\nfunction test() {\n    console.log('a')\n}\n```\n\n### [Split var declarations](lib/splitVarDeclarations.js)\n\n```js\n// before\nfunction test() {\n    var a = 1, b = 2\n}\n\n// after\nfunction test() {\n    var a = 1\n    var b = 2\n}\n```\n\n### [Square brackets](lib/squareBrackets.js)\n\n```js\n// before\nconsole['log']('a')\n\n// after\nconsole.log('a')\n```\n\n### [Static function](lib/staticFunc.js)\n\n```js\n// before\nfunction a() {\n    return 1\n}\nconsole.log(a())\n\n// after\nconsole.log(1)\n```\n\n### [Static if](lib/staticIf.js)\n\n```js\n// before\nfunction test() {\n    if (1 == 1) {\n        console.log('a')\n    }\n}\n\n// after\nfunction test() {\n    console.log('a')\n}\n```\n\n### [String concat](lib/stringConcat.js)\n\n```js\n// before\nconsole.log('a' + 'b')\n\n// after\nconsole.log('ab')\n```\n\n### [Unwrap ternary](lib/unwrapTernary.js)\n\nTODO\n\n### [Void](lib/void.js)\n\n```js\n// before\nvar a = void 0\n\n// after\nvar a = undefined\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrcnull%2Fdeobf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptrcnull%2Fdeobf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrcnull%2Fdeobf/lists"}