{"id":28405252,"url":"https://github.com/coxcore/class","last_synced_at":"2025-06-29T06:31:31.840Z","repository":{"id":35031638,"uuid":"39143764","full_name":"coxcore/class","owner":"coxcore","description":"Class and Module Manager","archived":false,"fork":false,"pushed_at":"2017-08-17T06:56:06.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T06:08:40.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"learn-co-students/dsc-1-09-19-one-sample-z-test-nyc-career-ds-102218","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coxcore.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-07-15T15:10:43.000Z","updated_at":"2018-05-04T02:12:06.000Z","dependencies_parsed_at":"2022-09-16T00:11:49.758Z","dependency_job_id":null,"html_url":"https://github.com/coxcore/class","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coxcore/class","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coxcore%2Fclass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coxcore%2Fclass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coxcore%2Fclass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coxcore%2Fclass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coxcore","download_url":"https://codeload.github.com/coxcore/class/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coxcore%2Fclass/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262546806,"owners_count":23327034,"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":"2025-06-01T21:11:17.799Z","updated_at":"2025-06-29T06:31:31.834Z","avatar_url":"https://github.com/coxcore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# COXCORE Class / Module Manager\n\n## cox.class.js\n`cox.createClass`를 이용하여 Class 생성과 상속을 처리할 수 있다.\n\n#### Method \n- `cox.each` : Callback 함수 배열 순회 호출 \n- `cox.isArray` : 배열 체크 (`Array.isArray`가 없으면 대체 함수 사용)\n- `cox.isFunction` : 함수 체크\n- `cox.isString` : 문자열 체크\n- `cox.isNull` : `null` 혹은 `undefined` 체크\n- `cox.isObject` : Object 체크\n- `cox.proxy` : Context가 지정된 함수 반환 (`Function.prototype.bind`가 없으면 대체 함수 사용)\n- `cox.createObject` : 지정된 객체를 prototype으로 하는 Object 반환 (`Object.create`가 없으면 대체 함수 사용)\n- `cox.isInstance` : Prototype chain을 사용하지 않는 옵션에서 Class 상속을 할 때 instance 체크 (`instanceof` 대체)\n- `cox.createClass` : Class 생성\n\n\n#### Link\n- [**cox.class 도움말 보기**](https://github.com/coxcore/class/wiki/cox.class.js)\n\n\n\n## cox.module.js\n`cox.define`으로 Module을 정의할 수 있으며, `cox.module`로 의존성이 처리된 상태에서 Module을 사용할 수 있다.\n\n#### Method\n- `cox.define` : Module 생성 함수로 Module 정의\n- `cox.defineModule` : Module 정의\n- `cox.module` : Module 반환 및 의존성 처리\n\n#### Link\n- [**cox.module 도움말 보기**](https://github.com/coxcore/class/wiki/cox.module.js)\n\n\n\n## cox.node.builder.js\n`Grunt`나 `Gulp` 같은 Task Runner 없이 Module을 병합해준다.\n\n\n#### 사용법\n\n저장소 Root 경로의 `build.js`파일을 node로 실행한다.\n\n```javascript\n$ node build\n```\n\n\n#### Method\n- `config` : Option을 설정한다.\n- `build` : Module을 병합한 파일을 생성한다.\n\n#### Link\n- [**cox.node.builder 도움말 보기**](https://github.com/coxcore/class/wiki/cox.node.builder.js)\n\n\n\n## 참고\n`cox.class`와 `cox.module`은 node에서 사용가능하다.\n\n```javascript\n\nrequire('{path}/cox.class');\nrequire('{path}/cox.module');\n\n// 전역변수 cox에 namespace 객체를 할당한다.\nconsole.log(cox);\n\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoxcore%2Fclass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoxcore%2Fclass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoxcore%2Fclass/lists"}