{"id":23298908,"url":"https://github.com/dnafication/saz2js","last_synced_at":"2026-01-31T03:31:33.812Z","repository":{"id":51925224,"uuid":"190304656","full_name":"dnafication/saz2js","owner":"dnafication","description":"A utility which consumes a saz file and converts it to a sessions object","archived":false,"fork":false,"pushed_at":"2022-02-12T00:36:03.000Z","size":50,"stargazers_count":1,"open_issues_count":3,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-25T18:37:43.168Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/saz2js","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/dnafication.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":"2019-06-05T01:25:23.000Z","updated_at":"2019-12-16T01:13:49.000Z","dependencies_parsed_at":"2022-08-23T11:10:27.947Z","dependency_job_id":null,"html_url":"https://github.com/dnafication/saz2js","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dnafication/saz2js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnafication%2Fsaz2js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnafication%2Fsaz2js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnafication%2Fsaz2js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnafication%2Fsaz2js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnafication","download_url":"https://codeload.github.com/dnafication/saz2js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnafication%2Fsaz2js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28928148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T02:59:34.861Z","status":"ssl_error","status_checked_at":"2026-01-31T02:59:05.369Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-20T08:13:09.698Z","updated_at":"2026-01-31T03:31:33.798Z","avatar_url":"https://github.com/dnafication.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# saz2js\n\nA utility to convert fiddler capture (`.saz`) to js object.\n\nThe code is inspired by [node-saz-parser](https://github.com/ludoviclefevre/node-saz-parser), updated to use [yauzl](https://github.com/thejoshwolfe/yauzl) instead of `unzip`.\n\n**Breaking Change:** The release 1.0.0 and above allows you to control the content of sessions object, hence the api change. Now it parses the meta data as well.\n\n## Usage\n\n1. install the package `npm i saz2js`\n2. sample node script\n\n```javascript\nconst parser = require('saz2js');\n\nconst options = {\n  req: true, // determines if the sessions object will contain request data\n  res: true, // determines if the sessions object will contain response data\n  meta: true // determines if the sessions object will contain meta information\n}\n\nparser('test.saz', options, function(err, sessions) {\n  if (err) throw err;\n  console.log(sessions);\n});\n\n// sessions object\n{\n  '09': {\n    request: {\n      method: 'GET',\n      url: 'https://example.com?refresh=Refresh\u0026url=true',\n      protocol: 'HTTP/1.1',\n      headers: {\n        'Accepted': ''\n        ...\n      },\n      content: 'body of request'\n    },\n    response: {\n      protocol: 'HTTP/1.1',\n      statusCode: '200',\n      status: 'OK',\n      headers: {\n        ...\n      },\n      content: 'body of response'\n    },\n    meta: {\n      _declaration: {\n        _attributes: {\n          version: \"1.0\",\n          encoding: \"utf-8\"\n        }\n      },\n      Session: {\n        _attributes: {\n          SID: \"167\",\n          BitFlags: \"19\"\n        },\n      SessionTimers: {\n          _attributes: {\n            ClientConnected: \"2019-06-07T11:24:55.8156275+10:00\",\n            ...\n          }\n        },\n      PipeInfo: {\n          _attributes: {\n            CltReuse: \"true\",\n            Reused: \"true\"\n          }\n        },\n      SessionFlags: {\n        SessionFlag: [\n            {\n              _attributes: {\n                N: \"x-processinfo\",\n                V: \"chrome:6152\"\n              }\n            },\n            ...\n          ]\n        }\n      }\n    }\n  }\n  }\n  ...\n};\n\n```\n\nThat's it, really!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnafication%2Fsaz2js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnafication%2Fsaz2js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnafication%2Fsaz2js/lists"}