{"id":19128798,"url":"https://github.com/peerlibrary/meteor-user-extra","last_synced_at":"2025-07-11T05:03:24.802Z","repository":{"id":68281903,"uuid":"48280536","full_name":"peerlibrary/meteor-user-extra","owner":"peerlibrary","description":"Extended Meteor.userId() and Meteor.user()","archived":false,"fork":false,"pushed_at":"2019-09-20T04:17:28.000Z","size":10,"stargazers_count":18,"open_issues_count":2,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-04T16:28:18.990Z","etag":null,"topics":["meteor","meteor-package"],"latest_commit_sha":null,"homepage":"https://atmospherejs.com/peerlibrary/user-extra","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peerlibrary.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":"2015-12-19T12:06:14.000Z","updated_at":"2019-09-20T04:17:30.000Z","dependencies_parsed_at":"2023-02-25T11:46:16.960Z","dependency_job_id":null,"html_url":"https://github.com/peerlibrary/meteor-user-extra","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peerlibrary/meteor-user-extra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerlibrary%2Fmeteor-user-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerlibrary%2Fmeteor-user-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerlibrary%2Fmeteor-user-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerlibrary%2Fmeteor-user-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peerlibrary","download_url":"https://codeload.github.com/peerlibrary/meteor-user-extra/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerlibrary%2Fmeteor-user-extra/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264734398,"owners_count":23655660,"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":["meteor","meteor-package"],"created_at":"2024-11-09T06:05:41.463Z","updated_at":"2025-07-11T05:03:24.785Z","avatar_url":"https://github.com/peerlibrary.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Extended Meteor.userId() and Meteor.user()\n==========================================\n\nAdding this package to your [Meteor](http://www.meteor.com/) application:\n\n* makes [`Meteor.userId()`](http://docs.meteor.com/#/full/meteor_userid)\n  work also inside the publish endpoint functions (even for Meteor versions prior to 1.5.1)\n* prevents direct modification of the user's profile from the client, which\n  is otherwise allowed by Meteor\n* extends [`Meteor.user(userId)`](http://docs.meteor.com/#/full/meteor_user)\n  into `Meteor.user(userId, fields)` which now accepts an argument to limit\n  queried fields (and thus function's reactivity); `userId` is optional and if\n  not specified `Meteor.userId()` is used instead\n\nBoth client and server side.\n\nInstallation\n------------\n\n```\nmeteor add peerlibrary:user-extra\n```\n\nExamples\n--------\n\n```javascript\nTemplate.user.helpers({\n  username: function () {\n    var user = Meteor.user({username: 1});\n    return user \u0026\u0026 user.username;\n  }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeerlibrary%2Fmeteor-user-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeerlibrary%2Fmeteor-user-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeerlibrary%2Fmeteor-user-extra/lists"}