{"id":21229419,"url":"https://github.com/mrzmyr/sps-parser","last_synced_at":"2025-08-02T09:33:29.548Z","repository":{"id":146991582,"uuid":"114226891","full_name":"mrzmyr/sps-parser","owner":"mrzmyr","description":"Parse your SPS file and modify and save it to make working with tools like soscisurvey.de more flexible","archived":false,"fork":false,"pushed_at":"2017-12-14T15:04:25.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T02:14:21.592Z","etag":null,"topics":["parser","soscisurvey","sps","spss"],"latest_commit_sha":null,"homepage":"https://github.com/mrzmyr/sps-parser#readme","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/mrzmyr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-14T09:00:39.000Z","updated_at":"2023-09-08T17:33:56.000Z","dependencies_parsed_at":"2023-04-18T18:01:25.647Z","dependency_job_id":null,"html_url":"https://github.com/mrzmyr/sps-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrzmyr/sps-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrzmyr%2Fsps-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrzmyr%2Fsps-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrzmyr%2Fsps-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrzmyr%2Fsps-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrzmyr","download_url":"https://codeload.github.com/mrzmyr/sps-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrzmyr%2Fsps-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268362944,"owners_count":24238543,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["parser","soscisurvey","sps","spss"],"created_at":"2024-11-20T23:27:24.614Z","updated_at":"2025-08-02T09:33:29.518Z","avatar_url":"https://github.com/mrzmyr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SPS Parser\n\n\u003e Parse your SPS file and modify and save it to make working with tools like [soscisurvey.de](https://www.soscisurvey.de/) and SPSS more flexible\n\n### Installation\n\nUse the file in `lib/sps-parser.js`\n\n\u003e Haven't got the time to publish to `npm`\n\n### Usage\n\n#### Read \u0026 Write\n\n```js\nconst Parser = require('./sps-parser')\nconst content = fs.readFileSync('your-file.sps', 'utf8')\n\nlet parser = new Parser(content)\n\n// replace case with case id 188 value 'HE01_03' with '5'\nparser.replace(188, 'HE01_03', 5)\n\n// get raw text output with new values\nlet newContent = parser.getText()\n\nfs.writeFileSync('./test.sps', newContent, 'utf8');\n```\n\n#### Get Values \u0026 Variables\n\n```js\nconst Parser = require('./sps-parser')\nconst content = fs.readFileSync('your-file.sps', 'utf8')\n\nlet parser = new Parser(content)\n\nlet value = parser.getValue(188, 'HE01_03')\nlet values = parser.getValues()\nlet variables = parser.getVariables()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrzmyr%2Fsps-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrzmyr%2Fsps-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrzmyr%2Fsps-parser/lists"}