{"id":18005092,"url":"https://github.com/suissa/iammutable","last_synced_at":"2025-04-04T10:30:10.199Z","repository":{"id":140332784,"uuid":"63612416","full_name":"suissa/IamMutable","owner":"suissa","description":"But not.","archived":false,"fork":false,"pushed_at":"2016-08-07T16:41:49.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T20:42:43.367Z","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/suissa.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":"2016-07-18T15:00:05.000Z","updated_at":"2016-09-21T15:46:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e9e0eee-300d-468c-bc29-38b03cf7d3a8","html_url":"https://github.com/suissa/IamMutable","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/suissa%2FIamMutable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suissa%2FIamMutable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suissa%2FIamMutable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suissa%2FIamMutable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suissa","download_url":"https://codeload.github.com/suissa/IamMutable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247160075,"owners_count":20893758,"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-30T00:17:31.765Z","updated_at":"2025-04-04T10:30:09.671Z","avatar_url":"https://github.com/suissa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# I am mutable\n\nBut not.\n\n![](https://abhirockzz.files.wordpress.com/2014/01/immutable-defined.png)\n\n```js\nconst immutable = {}\nconst RealImmutable = require('iammutable')(immutable)\nconsole.log(Object.isFrozen(RealImmutable))\n```\n\nIf you want to use as a `GLOBAL`, **CAUTION!!!**:\n\n```js\n'use strict'\n// Not a good practice\nrequire('./iammutable.global')\n\nconst immutable = {\n  name: 'Webschool',\n  sayName: (name) =\u003e 'Nome: ' + name\n}\nconst RealImmutable = Immutable(immutable)\nconsole.log(Object.isFrozen(RealImmutable))\n\nRealImmutable.test = true\n```\n\nNow you have `Immutable()` as a **global function**!\n\n\n```js\n// iammutable.global.js\n'use strict'\n\nglobal.Immutable = (obj) =\u003e {\n  if(Object.isFrozen(obj)) return obj \n  return Object.freeze(obj)\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuissa%2Fiammutable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuissa%2Fiammutable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuissa%2Fiammutable/lists"}