{"id":20432699,"url":"https://github.com/realabbas/srt-convert-json","last_synced_at":"2026-04-20T10:33:27.302Z","repository":{"id":134776311,"uuid":"330957949","full_name":"realabbas/srt-convert-json","owner":"realabbas","description":"Convert SRT data file 📂 to JSON ","archived":false,"fork":false,"pushed_at":"2021-04-08T16:49:41.000Z","size":113,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T00:40:50.701Z","etag":null,"topics":["json","npm-package","srt","srt-convert-json","srt-files","srt-subtitles","srt-to-json","srt2json","subtitle-conversion","subtitles"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/realabbas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-19T11:29:26.000Z","updated_at":"2023-11-09T05:41:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"c853c10f-2b63-4a33-9c66-7080bb444eff","html_url":"https://github.com/realabbas/srt-convert-json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/realabbas/srt-convert-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realabbas%2Fsrt-convert-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realabbas%2Fsrt-convert-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realabbas%2Fsrt-convert-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realabbas%2Fsrt-convert-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realabbas","download_url":"https://codeload.github.com/realabbas/srt-convert-json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realabbas%2Fsrt-convert-json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32043081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["json","npm-package","srt","srt-convert-json","srt-files","srt-subtitles","srt-to-json","srt2json","subtitle-conversion","subtitles"],"created_at":"2024-11-15T08:16:15.109Z","updated_at":"2026-04-20T10:33:27.282Z","avatar_url":"https://github.com/realabbas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert SRT to JSON Format \n\n[![npm (scoped)](https://img.shields.io/npm/v/srt-convert-json.svg)](https://www.npmjs.com/package/srt-convert-json)\n[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/srt-convert-json.svg)](https://www.npmjs.com/package/srt-convert-json)\n\n![Preview Image](./mock/srt2json.png)\n\nThis npm package converts a SRT SubRip File (Subtitle File) into JSON format.\n\n## Package Install Instructions\n\n```\n$ npm install srt-convert-json\n```\n\n## Usage\n\n```js\nconst convert = require('srt-convert-json')\n\nconvert.process(\"INPUT_FILE_PATH\",\"OUTPUT_FILE_PATH\")\n// convert.process(\"./data.srt\",\"./subtitle.json\")\n```\n\nFor Example, this is an SRT File\n\n```\n1\n00:02:38,910 --\u003e 00:02:40,161\nEnglish! I'm English!\n\n2\n00:05:40,049 --\u003e 00:05:41,801\nIt's grenadiers, mate.\n```\n\nAfter converting, the output will be \n\n```\n[\n    {\n        \"position\": 1,\n        \"start\": \"00:02:38\",\n        \"timer1\": \"910\",\n        \"end\": \"00:02:40\",\n        \"timer2\": \"161\",\n        \"text\": \"English! I'm English!\"\n    },\n    {\n        \"position\": 2,\n        \"start\": \"00:05:40\",\n        \"timer1\": \"049\",\n        \"end\": \"00:05:41\",\n        \"timer2\": \"801\",\n        \"text\": \"It's grenadiers, mate.\"\n    },\n]\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealabbas%2Fsrt-convert-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealabbas%2Fsrt-convert-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealabbas%2Fsrt-convert-json/lists"}