{"id":20471374,"url":"https://github.com/statewalker/statewalker-ns","last_synced_at":"2025-03-05T13:42:28.609Z","repository":{"id":57679607,"uuid":"492464079","full_name":"statewalker/statewalker-ns","owner":"statewalker","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-17T21:40:11.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T02:21:51.179Z","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/statewalker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-05-15T11:13:26.000Z","updated_at":"2022-05-15T11:28:06.000Z","dependencies_parsed_at":"2022-09-14T03:00:17.279Z","dependency_job_id":null,"html_url":"https://github.com/statewalker/statewalker-ns","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/statewalker%2Fstatewalker-ns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statewalker%2Fstatewalker-ns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statewalker%2Fstatewalker-ns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statewalker%2Fstatewalker-ns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statewalker","download_url":"https://codeload.github.com/statewalker/statewalker-ns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242038987,"owners_count":20061921,"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-15T14:15:55.761Z","updated_at":"2025-03-05T13:42:28.578Z","avatar_url":"https://github.com/statewalker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# statewalker-ns\n\nThis package contains common namespace for StateWalker libraries.\nThis namespace allows to share code loaded independently by various applications. \n\nLogically this module gets the global context (the `g` variable \nin the example below) and verifies that there is an object \nassociated with the `statewalker` key:\n\n```js\nlet g;\ng = g || (typeof window !== 'undefined' ? window : undefined);\ng = g || (typeof global !== 'undefined' ? global : undefined);\ng = g || {};\nconst ns = g.statewalker = g.statewalker || {};\nexport default ns;\n```\n\nThis global namespace is used to share code and data between applications loaded independently:\n```js\nimport { default as ns } from \"@setatewalker/ns\";\nimport newServices from ...\nconst services = ns.services = ns.services || newServices();\n...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatewalker%2Fstatewalker-ns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatewalker%2Fstatewalker-ns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatewalker%2Fstatewalker-ns/lists"}