{"id":15844159,"url":"https://github.com/xtuc/babel-plugin-immutable-const","last_synced_at":"2025-04-01T17:39:28.451Z","repository":{"id":57188843,"uuid":"74835583","full_name":"xtuc/babel-plugin-immutable-const","owner":"xtuc","description":"Freeze object using const declaration","archived":false,"fork":false,"pushed_at":"2017-03-31T11:53:57.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T11:52:44.898Z","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/xtuc.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":"2016-11-26T16:01:32.000Z","updated_at":"2017-12-28T06:46:32.000Z","dependencies_parsed_at":"2022-08-28T12:51:38.290Z","dependency_job_id":null,"html_url":"https://github.com/xtuc/babel-plugin-immutable-const","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fbabel-plugin-immutable-const","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fbabel-plugin-immutable-const/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fbabel-plugin-immutable-const/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fbabel-plugin-immutable-const/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtuc","download_url":"https://codeload.github.com/xtuc/babel-plugin-immutable-const/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246681484,"owners_count":20816905,"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-05T17:20:29.211Z","updated_at":"2025-04-01T17:39:28.417Z","avatar_url":"https://github.com/xtuc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Babel plugin immutable const\n\n\u003e Transform _consted_ objects into immutable objects.\n\nThe object will be frozen. This will avoid future mutations on it.\nUpdate will simply be ignored and __no errors will be thrown__.\n\n## Installation\n\n```shell\nnpm install --save-dev babel-plugin-immutable-const\n```\n\n## Usage\n\nAdd the following line to your .babelrc file:\n\n```json\n{\n  \"plugins\": [\"immutable-const\"]\n}\n```\n\n## Example\n\n```js\nconst foo = { bar: true };\n```\n\nWill be transformed into:\n\n```js\nconst foo = Object.freeze({ bar: true });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtuc%2Fbabel-plugin-immutable-const","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtuc%2Fbabel-plugin-immutable-const","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtuc%2Fbabel-plugin-immutable-const/lists"}