{"id":15022502,"url":"https://github.com/ltd-beget/lanurite","last_synced_at":"2025-05-02T08:30:56.184Z","repository":{"id":68299680,"uuid":"101389741","full_name":"LTD-Beget/lanurite","owner":"LTD-Beget","description":"Library for Models and Collection use in JS world. supported browser, Nodejs, TypeScript","archived":false,"fork":false,"pushed_at":"2019-05-17T12:56:57.000Z","size":680,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-11-12T16:02:30.426Z","etag":null,"topics":["angularjs","backbone","collection","models","react","typescript","vuejs"],"latest_commit_sha":null,"homepage":"https://pxyup.github.io/lanurite/","language":"TypeScript","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/LTD-Beget.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-25T09:40:29.000Z","updated_at":"2024-01-12T18:26:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ea9b17f-d918-49a7-bc15-c309fdf34b20","html_url":"https://github.com/LTD-Beget/lanurite","commit_stats":{"total_commits":96,"total_committers":4,"mean_commits":24.0,"dds":"0.48958333333333337","last_synced_commit":"a003ee480683d01aca9b89e5cc5b9ee30aa20fb5"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTD-Beget%2Flanurite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTD-Beget%2Flanurite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTD-Beget%2Flanurite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTD-Beget%2Flanurite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LTD-Beget","download_url":"https://codeload.github.com/LTD-Beget/lanurite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224305847,"owners_count":17289446,"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":["angularjs","backbone","collection","models","react","typescript","vuejs"],"created_at":"2024-09-24T19:58:02.407Z","updated_at":"2024-11-12T16:05:09.969Z","avatar_url":"https://github.com/LTD-Beget.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lanurite\nLibrary for Models and Collection use in JS worlds\n\nDocumentation:\nhttps://pxyup.github.io/lanurite/\n\n[![NPM](https://nodei.co/npm/lanurite.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/lanurite/)\n\n**For use in browser**\n\n`\u003cscript src=\"../dist/lanurite.js\"\u003e\u003c/script\u003e`\n\n**For use in TypeScript**\n\n```typescript\nimport * as Lanurite from \"lanurite\"\nconsole.log(Lanurite.version)\n\n```\n\n**For use in NodeJS**\n\n```javascript\nvar Lanurite = require(\"lanurite\");\nconsole.log(Lanurite.version)\n```\n\n## Example\n\n```javascript\n\nlet model = new Lanurite.Model({name: \"Robot\"});\ndocument.getElementById(\"test\").innerHTML = model.get(\"name\");\n\nmodel.on(\"change\", function (e) {\n    document.getElementById(\"test\").innerHTML = model.get(\"name\")\n    model.off(\"change\", log)\n});\n\nlet collection = new Lanurite.Collection();\n\ncollection.on(\"add\", function (model) {\n    document.getElementById(\"collection\").innerHTML += model.get(\"name\") + \"\u003cbr\u003e\"\n})\n\ncollection.on(\"clear\", function () {\n    document.getElementById(\"collection\").innerHTML = \"\";\n});\n\nmodel.on(\"change\", log);\n\ncollection.on(\"reset\", function () {\n    getCollectionDOM();\n});\n\ngetCollectionDOM();\n\nfunction log(event){\n    console.log(event)\n}\n\nfunction getCollectionDOM() {\n    document.getElementById(\"collection\").innerHTML = \"\";\n    collection.each((el) =\u003e {\n        document.getElementById(\"collection\").innerHTML += el.get(\"name\") + \"\u003cbr\u003e\"\n    });\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltd-beget%2Flanurite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fltd-beget%2Flanurite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltd-beget%2Flanurite/lists"}