{"id":27874662,"url":"https://github.com/ctripcorp/cat.js","last_synced_at":"2025-05-05T01:37:09.881Z","repository":{"id":57194871,"uuid":"42702344","full_name":"ctripcorp/cat.js","owner":"ctripcorp","description":"Javascript client of CAT","archived":false,"fork":false,"pushed_at":"2016-12-21T12:51:52.000Z","size":124,"stargazers_count":29,"open_issues_count":1,"forks_count":24,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-10T02:17:09.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctripcorp.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}},"created_at":"2015-09-18T05:49:31.000Z","updated_at":"2023-11-23T22:03:17.000Z","dependencies_parsed_at":"2022-09-16T05:14:15.033Z","dependency_job_id":null,"html_url":"https://github.com/ctripcorp/cat.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctripcorp%2Fcat.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctripcorp%2Fcat.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctripcorp%2Fcat.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctripcorp%2Fcat.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctripcorp","download_url":"https://codeload.github.com/ctripcorp/cat.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252424868,"owners_count":21745827,"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-05-05T01:37:09.270Z","updated_at":"2025-05-05T01:37:09.851Z","avatar_url":"https://github.com/ctripcorp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cat.js #\n\n- Version: 0.0.1\n- Author: cdchu@ctrip.com\n\n## Install ##\n\nnpm install cat-nodejs\n\n## Usage ##\n\n1. create app.config.js as nodejs module format\n\n\t     module.exports={\n\t     \t'AppID':'921821',\n\t     \t'CatServer.Config.Url':'http://10.0.0.1/catconfig',\n\t\t\t'CatServer':['10.0.0.1:1234','10.0.0.2:1234']\n\t     };\n\n2. require ctriputil\n\n\t\tvar cat=require('cat-nodejs');\n\n\n## CAT APIs ##\n\n- **Method** *spanInstance* cat.span(type,name,data)\n\t- type as string\n\t- name as string\n\t- data as string or number or array or object\n- **Method** *self* cat.event(type,name,data)\n\t- type as string\n\t- name as string\n\t- data as string or number or array or object\n- **Method** *self* cat.error(message,stack)\n\t- message as string or error\n\t- stack as string\n- **Method** *self* CtripUtil.cat.http(server)\n\t- server as httpServerInstance\n- **Class** spanInstance\n\t- **Method** *spanInstance* spanInstance.span(type,name,data)\n\t\t- type as string\n\t\t- name as string\n\t\t- data as string or number or array or object\n\t- **Method** *self* spanInstance.event(type,name,data)\n\t\t- type as string\n\t\t- name as string\n\t\t- data as string or number or array or object\n\t- **Method** *self* spanInstance.error(message,stack)\n\t\t- message as string or error\n\t\t- stack as string\n\t- **Method** *parent* spanInstance.end()\n\t\t- parent as spanInstance or cat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctripcorp%2Fcat.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctripcorp%2Fcat.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctripcorp%2Fcat.js/lists"}