{"id":22222115,"url":"https://github.com/fabiospampinato/ini-simple-parser","last_synced_at":"2025-07-27T16:32:47.333Z","repository":{"id":207229617,"uuid":"718770499","full_name":"fabiospampinato/ini-simple-parser","owner":"fabiospampinato","description":"A simple, fast and configurable INI parser.","archived":false,"fork":false,"pushed_at":"2025-01-26T14:22:03.000Z","size":7,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T12:14:29.954Z","etag":null,"topics":["editorconfig","ini","parser","simple"],"latest_commit_sha":null,"homepage":"","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/fabiospampinato.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},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2023-11-14T19:07:54.000Z","updated_at":"2025-01-26T14:22:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"e38cafdd-693a-4348-b2cc-a29f6ad22e37","html_url":"https://github.com/fabiospampinato/ini-simple-parser","commit_stats":null,"previous_names":["fabiospampinato/ini-simple-parser"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fabiospampinato/ini-simple-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fini-simple-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fini-simple-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fini-simple-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fini-simple-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/ini-simple-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fini-simple-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264940383,"owners_count":23686243,"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":["editorconfig","ini","parser","simple"],"created_at":"2024-12-02T23:16:59.201Z","updated_at":"2025-07-27T16:32:47.320Z","avatar_url":"https://github.com/fabiospampinato.png","language":"JavaScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":[],"sub_categories":[],"readme":"# INI Simple Parser\n\nA simple, fast and configurable INI parser.\n\n## Install\n\n```sh\nnpm install ini-simple-parser\n```\n\n## Usage\n\nThe following options are supported:\n\n```ts\ntype Options = {\n  inferBooleans?: boolean, // Interpret true/TRUE/false/FALSE as booleans\n  inferNulls?: boolean, // Interpret null/NULL as nulls\n  inferNumbers?: boolean, // Interpret some strings that can be parsed as numbers as numbers\n  inferStrings?: boolean, // Automatically remove wrapping quotes from strings\n  inlineComments?: boolean // Automatically remove inline comments\n};\n```\n\nThis is how you'd use it:\n\n```ts\nimport parse from 'ini-simple-parser';\n\n// Let's define some initial string to parse\n\nconst INPUT = `\n  root=true\n  notRoot=\"false\"\n\n  ; last modified 1 April 2001 by John Doe\n  [owner]\n  name=John Doe\n  organization=Acme Widgets Inc.\n\n  [database]\n  # use IP address in case network name resolution is not working\n  server = 192.0.2.62\n  port = 143\n  file = \"payroll.dat\"\n  extra1 = something ; Inline comment\n  extra2 = something else # Inline comment\n  null = null\n  nil = \"0\"\n`;\n\n// Let's parse it normally, without setting any options\n\nconst parsed = parse ( INPUT );\n// {\n//   root: 'true',\n//   notRoot: '\"false\"',\n//   owner: {\n//     name: 'John Doe',\n//     organization: 'Acme Widgets Inc.'\n//   },\n//   database: {\n//     server: '192.0.2.62',\n//     port: '143',\n//     file: '\"payroll.dat\"',\n//     extra1: 'something ; Inline comment',\n//     extra2: 'something else # Inline comment',\n//     null: 'null',\n//     nil: '\"0\"'\n//   }\n// }\n\n// Let's parse with every option enabled\n\nconst parsed = parse ( INPUT, {\n  inferBooleans: true,\n  inferNulls: true,\n  inferNumbers: true,\n  inferStrings: true,\n  inlineComments: true\n});\n// {\n//   root: true,\n//   notRoot: 'false',\n//   owner: {\n//     name: 'John Doe',\n//     organization: 'Acme Widgets Inc.'\n//   },\n//   database: {\n//     server: '192.0.2.62',\n//     port: 143,\n//     file: 'payroll.dat',\n//     extra1: 'something',\n//     extra2: 'something else',\n//     null: null,\n//     nil: '0'\n//   }\n// }\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fini-simple-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fini-simple-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fini-simple-parser/lists"}