{"id":23510831,"url":"https://github.com/danielkov/is-mangled","last_synced_at":"2026-04-30T09:33:19.889Z","repository":{"id":57277358,"uuid":"98877650","full_name":"danielkov/is-mangled","owner":"danielkov","description":"A simple one-liner to detect whether its execution environment had been mangled (minified) or not.","archived":false,"fork":false,"pushed_at":"2017-07-31T11:35:21.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T08:22:52.640Z","etag":null,"topics":["development","development-environment","javascript","utility"],"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/danielkov.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":"2017-07-31T10:35:40.000Z","updated_at":"2017-07-31T11:40:07.000Z","dependencies_parsed_at":"2022-09-16T09:52:56.650Z","dependency_job_id":null,"html_url":"https://github.com/danielkov/is-mangled","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/danielkov%2Fis-mangled","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielkov%2Fis-mangled/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielkov%2Fis-mangled/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielkov%2Fis-mangled/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielkov","download_url":"https://codeload.github.com/danielkov/is-mangled/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253990504,"owners_count":21995776,"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":["development","development-environment","javascript","utility"],"created_at":"2024-12-25T12:12:33.160Z","updated_at":"2026-04-30T09:33:14.869Z","avatar_url":"https://github.com/danielkov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# isMangled\nA simple one-liner to help determine whether the code you're executing had been minified or not.\n___\n\n## Usage example\n\n```js\nimport isMangled from 'is-mangled'\n\nlet isProduction = false\n\nif (isMangled()) {\n    isProduction = true\n}\n```\nNote that this is not a completely foolproof way of determining whether the code had been concatenated or otherwise altered. Some algorythms do not minify code this way, which means you should always test before relying on this function.\n\n## Installing\n\nInstall with `npm i -S is-mangled` or if you're even cooler, use yarn: `yarn add is-mangled`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielkov%2Fis-mangled","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielkov%2Fis-mangled","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielkov%2Fis-mangled/lists"}