{"id":22021565,"url":"https://github.com/lamansky/has-getter","last_synced_at":"2026-04-16T12:36:20.531Z","repository":{"id":57261509,"uuid":"84047530","full_name":"lamansky/has-getter","owner":"lamansky","description":"A Node.js module that checks if an object has a property with a defined getter function.","archived":false,"fork":false,"pushed_at":"2017-03-06T08:24:06.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T16:45:09.649Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lamansky.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-06T08:18:15.000Z","updated_at":"2017-03-06T08:24:18.000Z","dependencies_parsed_at":"2022-08-25T05:10:57.993Z","dependency_job_id":null,"html_url":"https://github.com/lamansky/has-getter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fhas-getter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fhas-getter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fhas-getter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fhas-getter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamansky","download_url":"https://codeload.github.com/lamansky/has-getter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245085058,"owners_count":20558326,"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-30T06:12:56.544Z","updated_at":"2026-04-16T12:36:15.421Z","avatar_url":"https://github.com/lamansky.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# has-getter\n\nA [Node.js](https://nodejs.org/) module that checks if an object has a property with a defined getter function.\n\n## Installation\n\n```bash\nnpm install has-getter --save\n```\n\nThe module exposes a single function.\n\n## Usage\n\n```javascript\nconst hasGetter = require('has-getter')\n\nclass Test {\n  get data () { return 'example' }\n}\n\nhasGetter(Test.prototype, 'data') // true\n\nconst test = new Test()\n\nhasGetter(test, 'data') // true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Fhas-getter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamansky%2Fhas-getter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Fhas-getter/lists"}