{"id":23186067,"url":"https://github.com/termosa/lixy","last_synced_at":"2025-04-05T04:44:53.479Z","repository":{"id":70675541,"uuid":"156430041","full_name":"termosa/lixy","owner":"termosa","description":"Live proxy","archived":false,"fork":false,"pushed_at":"2018-11-08T18:18:29.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T01:02:02.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/termosa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-06T18:36:36.000Z","updated_at":"2018-11-08T18:18:30.000Z","dependencies_parsed_at":"2023-07-24T11:05:12.873Z","dependency_job_id":null,"html_url":"https://github.com/termosa/lixy","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"ca2f8b85817cdfebcbbbe08c0297d71b1dc10ee8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termosa%2Flixy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termosa%2Flixy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termosa%2Flixy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termosa%2Flixy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/termosa","download_url":"https://codeload.github.com/termosa/lixy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289400,"owners_count":20914464,"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-18T10:14:22.640Z","updated_at":"2025-04-05T04:44:53.446Z","avatar_url":"https://github.com/termosa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lixy is live lazy proxy\n\nLive means that it lives wonderful and unpredictable life.\n\nWhile you call to proxied object it stays a proxy unless you get a primitive\nvalue.\n\n```\nconst lixy = require('lixy');\n\nconst math = {\n  add (a, b) {\n    return a + b;\n  }\n};\n\nconst { add } = lixy.lazy(() =\u003e math);\n\nadd(5, 3); // 8\n\nmath.add = (a, b) =\u003e a - b;\n\nadd(5, 3); // 2\n```\n\nIf the root object will not change, the example above can be simplified:\n\n```\nconst { add } = lixy(math);\n```\n\n**Note:** proxified objects will always have the type `function` to handle the\ncase when you need to replace the source object with a function, eg\n`math = eval`. If you want to change this behaviour pass the second argument\n`lixy(getter, { safeType: false })`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftermosa%2Flixy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftermosa%2Flixy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftermosa%2Flixy/lists"}