{"id":25000147,"url":"https://github.com/thinkmill/parse-toml-stream","last_synced_at":"2025-04-12T08:44:25.633Z","repository":{"id":57319582,"uuid":"101003848","full_name":"Thinkmill/parse-toml-stream","owner":"Thinkmill","description":"Parse TOML files in streams chunked by [sections]","archived":false,"fork":false,"pushed_at":"2017-08-22T00:43:57.000Z","size":29,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T00:17:10.316Z","etag":null,"topics":["nodejs","stream","toml"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/Thinkmill.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":"2017-08-22T00:34:16.000Z","updated_at":"2018-09-25T02:33:42.000Z","dependencies_parsed_at":"2022-08-25T21:00:53.240Z","dependency_job_id":null,"html_url":"https://github.com/Thinkmill/parse-toml-stream","commit_stats":null,"previous_names":["thejameskyle/parse-toml-stream"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkmill%2Fparse-toml-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkmill%2Fparse-toml-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkmill%2Fparse-toml-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkmill%2Fparse-toml-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thinkmill","download_url":"https://codeload.github.com/Thinkmill/parse-toml-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543825,"owners_count":21121837,"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":["nodejs","stream","toml"],"created_at":"2025-02-04T19:31:32.270Z","updated_at":"2025-04-12T08:44:25.614Z","avatar_url":"https://github.com/Thinkmill.png","language":"JavaScript","readme":"# parse-toml-stream\n\n\u003e Parse TOML files in streams chunked by `[sections]`\n\n```toml\n# data.toml\nfoo = \"bar\"\n\n[baz]\nboz = \"boy\"\n\n[bat]\nbam = \"boo\"\n```\n\n```js\nconst createReadableTomlStream = require('toml-stream');\nconst path = require('path');\nconst fs = require('fs');\n\nlet fileStream = fs.createReadStream(path.join(__dirname, 'data.toml'));\nlet tomlStream = createReadableTomlStream(fileStream);\n\nlet chunks = [];\n\ntomlStream.on('data', chunk =\u003e {\n  chunks.push(chunk);\n});\n\ntomlStream.on('end', () =\u003e {\n  console.log(chunks);\n});\n// chunks == [\n//   { foo: 'bar' },\n//   { baz: { boz: 'boy' } },\n//   { bat: { bam: 'boo' } },\n// ]\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkmill%2Fparse-toml-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkmill%2Fparse-toml-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkmill%2Fparse-toml-stream/lists"}