{"id":18951452,"url":"https://github.com/javascript-obfuscator/obfuscator-loader","last_synced_at":"2025-06-24T15:36:03.558Z","repository":{"id":29661859,"uuid":"122363012","full_name":"javascript-obfuscator/obfuscator-loader","owner":"javascript-obfuscator","description":"A webpack loader for obfuscating single modules using javascript-obfuscator","archived":false,"fork":false,"pushed_at":"2022-01-22T00:53:49.000Z","size":55,"stargazers_count":57,"open_issues_count":1,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T00:49:31.483Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javascript-obfuscator.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":"2018-02-21T16:39:27.000Z","updated_at":"2024-08-12T19:36:24.000Z","dependencies_parsed_at":"2022-07-22T20:10:51.810Z","dependency_job_id":null,"html_url":"https://github.com/javascript-obfuscator/obfuscator-loader","commit_stats":null,"previous_names":["zakplus/obfuscator-loader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javascript-obfuscator%2Fobfuscator-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javascript-obfuscator%2Fobfuscator-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javascript-obfuscator%2Fobfuscator-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javascript-obfuscator%2Fobfuscator-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javascript-obfuscator","download_url":"https://codeload.github.com/javascript-obfuscator/obfuscator-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223691246,"owners_count":17186772,"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-08T13:28:05.452Z","updated_at":"2024-11-08T13:28:06.070Z","avatar_url":"https://github.com/javascript-obfuscator.png","language":"JavaScript","readme":"# This package is deprecated\nThis package is deprecated. Use loader bundled to the [webpack-obfuscator](https://github.com/javascript-obfuscator/webpack-obfuscator#loader-usage) package\n\n# obfuscator-loader for webpack\n\nThis is a module loader for webpack wich obfuscate module source code using [javascript-obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator).  \n\n## Installation\n```npm install --save-dev obfuscator-loader```\n\n## What's new in 1.1.1\n`stringArray` option is now available. Thank you [Timofey Kachalov](https://github.com/zakplus/obfuscator-loader/issues/1).\n\n\n## Why not a plugin?\nObfuscating code can results in quite large files. It's a good idea to obfuscate only your code leaving third party libraries unobfuscated.\nThis is simple to achieve using a plugin if you plan to split your code and third party code in different bundles. Take a look at [this plugin](https://github.com/javascript-obfuscator/webpack-obfuscator).  \n\n\nSometimes you need to output a single js bundle but you still need to obfuscate the source code of some particular module. In these cases a loader can do the trick.  \nFor example I happened to had to bundle a big third party library (not a module of any sort, I had to use [script-loader](https://github.com/webpack-contrib/script-loader)) in one of my project and I was requested to obfuscate my code. \n\n## Usage\nDefine a rule in your webpack config and use the obfuscator-loader as the last of your loaders for your modules. You can add the **enforce: 'post'** flag to ensure the loader will be called after normal loaders:\n\n```javascript\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.js$/,\n        include: [ path.resolve(__dirname, \"justMySources\") ],\n        enforce: 'post',\n        use: { loader: 'obfuscator-loader', options: {/* options here */} }\n      },\n    ]\n  }\n};\n```\n\n## Options\nThis loader accepts the same options object of [javascript-obfuscator](https://www.npmjs.com/package/javascript-obfuscator#options)\n\n## License\n```\nMIT License\n\nCopyright (c) 2018 Valerio Bianchi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavascript-obfuscator%2Fobfuscator-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavascript-obfuscator%2Fobfuscator-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavascript-obfuscator%2Fobfuscator-loader/lists"}