{"_id":"ini-simple-parser","_rev":"1-82184205d8736cc9768c8ba36b48238b","name":"ini-simple-parser","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"ini-simple-parser","version":"1.0.0","keywords":["ini","simple","parser","editorconfig"],"_id":"ini-simple-parser@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/ini-simple-parser#readme","bugs":{"url":"https://github.com/fabiospampinato/ini-simple-parser/issues"},"dist":{"shasum":"687d32c3ba25f41cc07e671f0382f847359209db","tarball":"https://registry.npmjs.org/ini-simple-parser/-/ini-simple-parser-1.0.0.tgz","fileCount":17,"integrity":"sha512-cZUGzkBd1W8FoIbFNMbscMvIGwp+riO/4PaPAy2owQp0sja+ni6Yty11GBNnxaI1ePkSVXzPb8iMOOYuYw/MOQ==","signatures":[{"sig":"MEQCIE5CnHiIJv69xGenCmPxTagtTua/Ov7ANBfwIhcU1LrpAiBeQQcrS1gmLlwA6HWKHcPnC5yHXwrNW3kB8thYsKas5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21398},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"910520dc57af922e4a7e43ba98f0f2ab5aeda2bf","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","benchmark":"tsex benchmark","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare","benchmark:watch":"tsex benchmark --watch"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/ini-simple-parser.git","type":"git"},"_npmVersion":"8.19.2","description":"A simple, fast and configurable INI parser.","directories":{},"_nodeVersion":"18.12.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.3.1","tsex":"^3.0.1","benchloop":"^2.1.1","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/ini-simple-parser_1.0.0_1699988895748_0.3216472483960655","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"ini-simple-parser","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/ini-simple-parser.git"},"description":"A simple, fast and configurable INI parser.","license":"MIT","version":"1.0.1","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"benchmark":"tsex benchmark","benchmark:watch":"tsex benchmark --watch","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["ini","simple","parser","editorconfig"],"devDependencies":{"benchloop":"^2.1.1","fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"ini-simple-parser@1.0.1","gitHead":"784ce2e0297da9fc75a1d571afbb42cc0c7eb631","bugs":{"url":"https://github.com/fabiospampinato/ini-simple-parser/issues"},"homepage":"https://github.com/fabiospampinato/ini-simple-parser#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-myU5nhF2miBQP3tO/giUi+8BI9QhfM/XRZd0RD7G0p+40K6KPAwxMDtH3UEtJ2XJZbd+ZiQOoGh432DTYfzNVQ==","shasum":"5a5e867f34532d1c2f04cfeba46b816fec5d3234","tarball":"https://registry.npmjs.org/ini-simple-parser/-/ini-simple-parser-1.0.1.tgz","fileCount":9,"unpackedSize":9381,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCpmNb3i0kup8yAFaIWExcbHSXIDaX9PcxYM04CGKP6nAIhAIDRwDbCHycWvrPnS1sj6tYAH6L9pZq/3AhEZcqodYt2"}]},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ini-simple-parser_1.0.1_1737901320339_0.0524327484817908"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-14T19:08:15.747Z","modified":"2025-01-26T14:22:00.718Z","1.0.0":"2023-11-14T19:08:15.948Z","1.0.1":"2025-01-26T14:22:00.545Z"},"bugs":{"url":"https://github.com/fabiospampinato/ini-simple-parser/issues"},"homepage":"https://github.com/fabiospampinato/ini-simple-parser#readme","keywords":["ini","simple","parser","editorconfig"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/ini-simple-parser.git"},"description":"A simple, fast and configurable INI parser.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"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","readmeFilename":"readme.md","license":"MIT"}