{"id":14954723,"url":"https://github.com/just-be-dev/meteor-namespace","last_synced_at":"2026-01-10T03:49:36.934Z","repository":{"id":25149339,"uuid":"28571811","full_name":"zephraph/meteor-namespace","owner":"zephraph","description":"A namespacing utility for meteor","archived":false,"fork":false,"pushed_at":"2017-06-18T13:12:19.000Z","size":9,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T05:31:31.247Z","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/zephraph.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":"2014-12-28T21:19:31.000Z","updated_at":"2017-07-15T11:41:15.000Z","dependencies_parsed_at":"2022-07-24T04:30:17.995Z","dependency_job_id":null,"html_url":"https://github.com/zephraph/meteor-namespace","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/zephraph%2Fmeteor-namespace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fmeteor-namespace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fmeteor-namespace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fmeteor-namespace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zephraph","download_url":"https://codeload.github.com/zephraph/meteor-namespace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238909356,"owners_count":19550838,"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-09-24T13:05:04.300Z","updated_at":"2026-01-10T03:49:36.845Z","avatar_url":"https://github.com/zephraph.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"meteor-namespace\n================\n\nA simple javascript namespacing utility that allows the easy creation of **global** namespaces. \nThis package functions by creating the namespace and attaching it to ```GLOBAL``` if it's on the server\nor ```window``` if it's on the client. Now on NPM!\n\n### Installation\n\nNode\n```\nnpm install meteor-namespace\n```\n\nMeteor\n```\nmeteor add zephraph:namespace\n```\n\n### Usage\n\nTo use this with node add a require like normal:\n```js\nvar Namespace = require('meteor-namespace');\n```\n\nCalling the Namespace function creates a global namespace and returns the namespace to be edited\n```js\nNamespace('my.app.namespace').test = 'hello world';\nconsole.log(my.app.namespace.test); // Prints out 'hello world'\n```\n\nWhen passing in a function 'this' is bound to the specified namespace\n```js\nNamespace('my.app.namespace', function() {\n  this.test2 = 'hello again!';\n});\nconsole.log(my.app.namespace.test2); // Prints out 'hello again!'\n```\n\nIf passing in a object literal the key/value pairs will be added to the namespace\n```js\nNamespace('my.app.namespace', {\n  test3: 'goodbye!'\n});\nconsole.log(my.app.namespace.test3); // Prints out 'goodbye!'\n```\n\n## Meteor Only\n\nA namespace can be limited to the client or server by calling ```Namespace.server``` or ```Namespace.client```\n```js\nNamespace.server('my.app.namespace', function() {\n  this.serverVal = my.app.do.secret.thing();\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust-be-dev%2Fmeteor-namespace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjust-be-dev%2Fmeteor-namespace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust-be-dev%2Fmeteor-namespace/lists"}