{"id":13499729,"url":"https://github.com/kitten/extendable-immutable","last_synced_at":"2025-03-29T05:32:14.257Z","repository":{"id":78159715,"uuid":"64684272","full_name":"kitten/extendable-immutable","owner":"kitten","description":"Wrapper classes around Immutable.js that turn it inheritable","archived":true,"fork":false,"pushed_at":"2018-03-06T00:38:47.000Z","size":896,"stargazers_count":57,"open_issues_count":3,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-21T04:16:08.193Z","etag":null,"topics":["immutable","immutablejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kitten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-08-01T16:42:32.000Z","updated_at":"2023-09-21T03:56:49.000Z","dependencies_parsed_at":"2023-02-27T21:30:31.836Z","dependency_job_id":null,"html_url":"https://github.com/kitten/extendable-immutable","commit_stats":null,"previous_names":["philpl/extendable-immutable"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitten%2Fextendable-immutable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitten%2Fextendable-immutable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitten%2Fextendable-immutable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitten%2Fextendable-immutable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitten","download_url":"https://codeload.github.com/kitten/extendable-immutable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222465626,"owners_count":16989050,"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":["immutable","immutablejs"],"created_at":"2024-07-31T22:00:39.645Z","updated_at":"2024-10-31T18:31:07.397Z","avatar_url":"https://github.com/kitten.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/philpl/extendable-immutable/master/docs/intro.gif\" width=400\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003cstrong\u003eWrapper classes around Immutable.js that turn it inheritable\u003c/strong\u003e\n\u003cbr\u003e\u003cbr\u003e\n\u003ca href=\"https://travis-ci.org/philpl/extendable-immutable\"\u003e\u003cimg src=\"https://img.shields.io/travis/philpl/extendable-immutable/master.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://coveralls.io/github/philpl/extendable-immutable\"\u003e\u003cimg src=\"https://img.shields.io/coveralls/philpl/extendable-immutable/master.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://npmjs.com/package/extendable-immutable\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/extendable-immutable.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://npmjs.com/package/extendable-immutable\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/extendable-immutable.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Extendable [Immutable.js](https://github.com/facebook/immutable-js/)\n\n## About\n\nEver wished that you could have OrderedMaps, Maps or Lists with extra methods,\nthat make your life easier? `.ofCourse()`!\n\n- Behaves like normal [Immutable.js](https://github.com/facebook/immutable-js/) data structures\n- Doesn't break [Immutable.js'](https://github.com/facebook/immutable-js/) inheritance (*.is and instanceof still pass!)\n\n## Getting Started\n\nInstalling the latest version via npm takes just a second:\n\n```bash\nnpm install --save extendable-immutable\n```\n\nImport what you need:\n\n```js\nimport { OrderedMap } from 'extendable-immutable'\n\nclass Collection extends OrderedMap {\n// ...\n```\n\n## Quick Intro\n\n```js\nimport { OrderedMap } from 'extendable-immutable'\n\nclass Collection extends OrderedMap {\n  static isCollection(val) {\n    return val \u0026\u0026 val instanceof Collection;\n  }\n\n  doMagic() {\n    return this.map(x =\u003e x.set(\"magic\", true));\n  }\n}\n\nconst magic = new Collection();\n\nmagic instanceof Immutable.OrderedMap; // true\nImmutable.OrderedMap.isOrderedMap(magic); // true\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitten%2Fextendable-immutable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitten%2Fextendable-immutable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitten%2Fextendable-immutable/lists"}