{"id":19569937,"url":"https://github.com/txt2u/obfuscate-my-code","last_synced_at":"2025-02-26T10:26:23.948Z","repository":{"id":65447855,"uuid":"592011501","full_name":"txt2u/obfuscate-my-code","owner":"txt2u","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-27T12:00:19.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T02:47:51.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/txt2u.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2023-01-22T16:52:19.000Z","updated_at":"2023-01-26T15:25:25.000Z","dependencies_parsed_at":"2023-02-12T17:00:21.063Z","dependency_job_id":null,"html_url":"https://github.com/txt2u/obfuscate-my-code","commit_stats":null,"previous_names":["ist3d/obfuscate-my-code","impify/obfuscate-my-code","sa1zu/obfuscate-my-code","h-ec/obfuscate-my-code","r-esu/obfuscate-my-code","re1yu/obfuscate-my-code","v2ny/obfuscate-my-code","txt2u/obfuscate-my-code"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txt2u%2Fobfuscate-my-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txt2u%2Fobfuscate-my-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txt2u%2Fobfuscate-my-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txt2u%2Fobfuscate-my-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txt2u","download_url":"https://codeload.github.com/txt2u/obfuscate-my-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240833466,"owners_count":19865138,"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-11-11T06:12:58.416Z","updated_at":"2025-02-26T10:26:23.836Z","avatar_url":"https://github.com/txt2u.png","language":"TypeScript","readme":"# Obfuscate My Code\nYou can use this to obfuscate (AND, OR) minify your project files so it can't be easily stolen or to make it very hard to read.\n\n## Installation\n### npm\n```ruby\n $ npm i obfuscate-my-code --save-dev\n```\n### yarn\n```ruby\n $ yarn add obfuscate-my-code --save-dev\n```\n### pnpm\n```ruby\n $ pnpm add obfuscate-my-code --save-dev\n```\n\n## Example Code\n### Typescript :\n```ts\nimport path from 'path';\nimport { OBFMC } from 'obfuscate-my-code';\n\nconst obf: OBFMC = new OBFMC();\nobf.silentLog = true; // Default is false\nobf.obfuscate('js', path.join(__dirname, '/mycodedir/'), 'browser');\nobf.minifyDir(path.join(__dirname, '/i/want/to/minify/this/dir/'));\n```\n### Javascript :\n```js\nconst path = require('path');\nconst { OBFMC } = require('obfuscate-my-code');\n\nconst obf = new OBFMC();\nobf.silentLog = true; // Default is false\nobf.obfuscate('js', path.join(__dirname, '/mycodedir/'), 'browser');\nobf.minifyDir(path.join(__dirname, '/i/want/to/minify/this/dir/'));\n```\n\n## About obfuscate() last argument\nLast argument of obfuscate() function is the options of the obfuscater and how it will obfuscate your files, It's optional there's options by default. But if you want to change it see https://obfuscator.io/ all the options of the page is the same as the argument.\n\n### Default Options :\n```ts\n{\n    compact: true,\n    simplify: true,\n    stringArray: true,\n    stringArrayRotate: true,\n    stringArrayShuffle: true,\n    stringArrayThreshold: 0.75,\n    stringArrayIndexShift: true,\n    stringArrayIndexesType: ['hexadecimal-number'],\n    stringArrayWrappersCount: 1,\n    stringArrayWrappersType: 'variable',\n    stringArrayWrappersChainedCalls: true,\n    target: obfuscateTargetType,\n    seed: 0,\n    deadCodeInjection: false,\n}\n```\n\n### If you get any bug please let me know in the issues page.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxt2u%2Fobfuscate-my-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxt2u%2Fobfuscate-my-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxt2u%2Fobfuscate-my-code/lists"}