{"id":22710555,"url":"https://github.com/smallhelm/minimal-immutable","last_synced_at":"2025-03-29T21:42:39.809Z","repository":{"id":32167203,"uuid":"35740439","full_name":"smallhelm/minimal-immutable","owner":"smallhelm","description":"Minimal api for immutable datastructures (maps) in javascript","archived":false,"fork":false,"pushed_at":"2015-05-20T03:01:31.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T22:28:05.690Z","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":"nooscaro/currencyExchangeBot","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smallhelm.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":"2015-05-16T21:12:08.000Z","updated_at":"2016-11-26T13:01:10.000Z","dependencies_parsed_at":"2022-09-11T11:22:42.073Z","dependency_job_id":null,"html_url":"https://github.com/smallhelm/minimal-immutable","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/smallhelm%2Fminimal-immutable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallhelm%2Fminimal-immutable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallhelm%2Fminimal-immutable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallhelm%2Fminimal-immutable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallhelm","download_url":"https://codeload.github.com/smallhelm/minimal-immutable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246249226,"owners_count":20747167,"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-12-10T12:10:29.865Z","updated_at":"2025-03-29T21:42:39.787Z","avatar_url":"https://github.com/smallhelm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minimal-immutable\n\nMinimal api for immutable (copy on write) datastructures in javascript.\n\n# Functions\n\n```js\nvar m = require('minimal-immutable');\n```\n\n## var i = m.fromJS(js)\n\nCreate an immutable value from a mutable js object.\n\n## var js = m.toJS(i)\n\nCreate a mutable js object from an immutable value.\n\n## var i1 = m.assoc(i0, key, value)\n\nReturns a new version of i0 with key associated to value.\n\n## var i1 = m.dissoc(i0, key)\n\nReturns a new version of i0 with key dissociated.\n\n## var value = m.get(i, key)\n\nGet the value associated with key.\n\n## var tf = m.equals(i0, i1)\n\nValue not identity, equality.\n\n## var iter = m.toIterator(i)\n\nCreate an iterator for i. \n\n***iter.key*** the current key\n\n***iter.value*** the current value\n\n***iter.next()*** get the next iter, or undefined if it's the last one\n\n\n# License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Small Helm LLC\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallhelm%2Fminimal-immutable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallhelm%2Fminimal-immutable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallhelm%2Fminimal-immutable/lists"}