{"id":17531521,"url":"https://github.com/dab0mb/cla6-hidden","last_synced_at":"2025-06-19T17:37:22.149Z","repository":{"id":30242862,"uuid":"33794064","full_name":"DAB0mB/cla6-hidden","owner":"DAB0mB","description":"Hidden plugin for Cla6.js","archived":false,"fork":false,"pushed_at":"2015-04-24T21:25:36.000Z","size":200,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-27T12:00:44.447Z","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/DAB0mB.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}},"created_at":"2015-04-11T21:57:13.000Z","updated_at":"2015-12-13T18:45:55.000Z","dependencies_parsed_at":"2022-09-13T02:31:43.195Z","dependency_job_id":null,"html_url":"https://github.com/DAB0mB/cla6-hidden","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAB0mB%2Fcla6-hidden","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAB0mB%2Fcla6-hidden/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAB0mB%2Fcla6-hidden/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAB0mB%2Fcla6-hidden/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DAB0mB","download_url":"https://codeload.github.com/DAB0mB/cla6-hidden/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241533630,"owners_count":19977826,"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-10-20T17:25:22.127Z","updated_at":"2025-03-02T16:13:47.608Z","avatar_url":"https://github.com/DAB0mB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cla6 Hidden \n\nThis is an addon plugin for [Cla6.js](https://github.com/DAB0mB/cla6) class system library. It provides the ability to hide some of the instance's properties and therefore make some of your api's logic private without exposing it. Although originally designed for use with [Node.js](http://nodejs.org) and installable via `npm install cla6-hidden`, it can also be used directly in the browser.\n\nCla6 Hidden is also installable via:\n\n- [bower](http://bower.io/): `bower install cla6-hidden`\n\n## Basic Examples\n\n```js\nvar Klass = Cla6('Klass', {\n  constructor: function() {\n    this._hidden = 'hidden';\n  },\n\n  get hidden() {\n    return this._hidden;\n  }\n});\n\nvar obj = new Klass();\nconsole.log(obj.hidden); // hidden\nconsole.log(obj._hidden); // undefined\n```\n\nYou may also define hidden properties on the prototype. Don't worry, Cla6-Hidden also knows how to handle the inheritance process:\n\n```js\nvar Parent = Cla6('Parent', {\n  _foo: 'parent',\n  _bar: 'parent'\n});\n\nvar Child = Cla6('Child').extend(Parent, {\n  _bar: 'child',\n\n  log: function() {\n    console.log(this._foo); // parent\n    console.log(this._bar); // child\n  }\n});\n\nobj = new Child();\nobj.log();\n```\n\n## How To Use\n\n```js\nvar Cla6 = require('cla6');\nvar Cla6Hidden = require('cla6-hidden');\n\nCla6.use(Cla6Hidden);\n```\n\n## Download\n\nThe source is available for download from\n[GitHub](http://github.com/DAB0mB/cla6-hidden).\nAlternatively, you can install using Node Package Manager (`npm`):\n\n    npm install cla6-hidden\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdab0mb%2Fcla6-hidden","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdab0mb%2Fcla6-hidden","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdab0mb%2Fcla6-hidden/lists"}