{"id":17722814,"url":"https://github.com/bramp/hessian.js","last_synced_at":"2025-06-20T23:06:14.936Z","repository":{"id":5703756,"uuid":"6914436","full_name":"bramp/hessian.js","owner":"bramp","description":"Node.js support for the Hessian binary web service protocol","archived":false,"fork":false,"pushed_at":"2013-05-02T02:12:47.000Z","size":152,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-20T23:03:29.058Z","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":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bramp.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":"2012-11-29T03:15:40.000Z","updated_at":"2020-01-26T12:01:17.000Z","dependencies_parsed_at":"2022-08-24T21:02:17.650Z","dependency_job_id":null,"html_url":"https://github.com/bramp/hessian.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bramp/hessian.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fhessian.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fhessian.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fhessian.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fhessian.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bramp","download_url":"https://codeload.github.com/bramp/hessian.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fhessian.js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261032034,"owners_count":23100046,"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-25T15:39:27.682Z","updated_at":"2025-06-20T23:06:09.907Z","avatar_url":"https://github.com/bramp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hessian.js\n==========\n\nThis is an implementation of the Hessian protocol written in JavaScript for Node  \nby Andrew Brampton [http://bramp.net](bramp.net)  \nCopyright 2012-2013\n\nProtocol reference:\n-------------------\n[http://hessian.caucho.com/doc/hessian-serialization.html](http://hessian.caucho.com/doc/hessian-serialization.html)\n\nIntro\n-----\n\nReading and writing hessian is supported\nAll valid hessian can be parsed, except for XML, Ref and Remote elements.\n\nInstall\n-------\n\n```bash\nnpm install hessian\n```\n\nExample\n-------\n\nDecoding\n\n```javascript\nvar parser = new hessian.HessianParser();\n\nparser.on('call', function(call, offset) {\n\t// Will be called once for each call\n});\n\nparser.on('reply', function(reply, offset) {\n\t// Will be called once for each reply\n});\n\nparser.on('object', function(obj, offset) {\n\t// Will be called once for each object\n});\n\nparser.on('error', function(err) {\n\t// Will only be called once on first error\n});\n\n// Now begin the parsing\nparser.decode(buf);\n\n```\n\nEncoding\n\n```javascript\nvar map = { 'map' : {key: value, key2: value2} };\nvar list = { 'list' : [1, 2, 3] [, type: 'int'] };\nvar string = \"string\";\nvar int = 123;\nvar bool = true;\nvar null = null;\n\nvar buf = hessian.encode(obj);\n```\n\nTODO\n----\n\n* Finish supporting all elements\n* Add reply/fault support\n* Find a good set of unit tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fhessian.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbramp%2Fhessian.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fhessian.js/lists"}