{"id":21935384,"url":"https://github.com/zeecoder/z-container","last_synced_at":"2026-05-13T07:04:57.770Z","repository":{"id":33384573,"uuid":"37029552","full_name":"ZeeCoder/z-container","owner":"ZeeCoder","description":"A container to save and retreive data / object references, etc.","archived":false,"fork":false,"pushed_at":"2015-06-12T08:52:43.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T13:14:22.002Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZeeCoder.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-06-07T19:39:42.000Z","updated_at":"2015-06-07T21:35:58.000Z","dependencies_parsed_at":"2022-08-07T21:00:48.935Z","dependency_job_id":null,"html_url":"https://github.com/ZeeCoder/z-container","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeeCoder%2Fz-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeeCoder%2Fz-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeeCoder%2Fz-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeeCoder%2Fz-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZeeCoder","download_url":"https://codeload.github.com/ZeeCoder/z-container/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244966462,"owners_count":20539794,"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-11-29T00:19:53.798Z","updated_at":"2026-05-13T07:04:57.741Z","avatar_url":"https://github.com/ZeeCoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# z-container\n[![Build Status](https://travis-ci.org/ZeeCoder/z-container.svg?branch=master)](https://travis-ci.org/ZeeCoder/z-container)\n[![npm version](https://badge.fury.io/js/z-container.svg)](http://badge.fury.io/js/z-container)\n\nThis is a container solution to save and later retrieve object references, and other data.\n\nSince it's a CommonJS module, it must be used alongside with [Browserify](http://browserify.org/), or\nsomething similar, like [WebPacker](http://webpack.github.io/).\n\n## Example, explanation\n```js\nvar container = require('z-container');\n\ncontainer.add('some_object_reference', object_reference);\n\ncontainer.has('some_object_reference');\n// -\u003e true, only if the key really exists in the container\n\n// Returns the previously saved reference.\n// This is useful, when CommonJS modules compiled to the web need to access a\n// certain module which was instantiated by the `new` operator.\ncontainer.get('some_object_reference');\n\n// The container can save and retrieve other kinds of data too, which is useful\n// when you have to pass data at runtime, and cannot simply `require()` data\n// from a file.\ncontainer.add('some_string', 'string');\ncontainer.get('some_string'); // returns \"string\"\n```\n\n## License\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeecoder%2Fz-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeecoder%2Fz-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeecoder%2Fz-container/lists"}