{"_id":"tiny-editorconfig","_rev":"3-772468280982dc4123cbc46de66db364","name":"tiny-editorconfig","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"tiny-editorconfig","version":"1.0.0","keywords":["editorconfig","parser","resolver"],"_id":"tiny-editorconfig@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/tiny-editorconfig#readme","bugs":{"url":"https://github.com/fabiospampinato/tiny-editorconfig/issues"},"dist":{"shasum":"5a289d3bf1620fa8f600155492000d62c4651931","tarball":"https://registry.npmjs.org/tiny-editorconfig/-/tiny-editorconfig-1.0.0.tgz","fileCount":29,"integrity":"sha512-rxpWaSurnvPUkL2/qydRH10llK7MD1XfE38zoWTsp/ZWWYnnwPBzGUePBOcXFaNA3cJQm8ItqrofGeRJ6AVaew==","signatures":[{"sig":"MEYCIQD8eKIv4z1WV92CflB6t9J5nCMa0EURzqa0ckLSHLIRrAIhAPk/M/CAD+dK8ZvSC1NYIs2xjwzer2WVc5EQaLtu/bET","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18231},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"9cda9b26d1ba28894bb823796f41f2ee71d309d1","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/tiny-editorconfig.git","type":"git"},"_npmVersion":"8.19.2","description":"A tiny isomorphic parser and resolver for EditorConfig.","directories":{},"_nodeVersion":"18.12.0","dependencies":{"zeptomatch":"^1.1.3","ini-simple-parser":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.3.1","tsex":"^3.0.1","benchloop":"^2.1.1","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/tiny-editorconfig_1.0.0_1700010807213_0.37119492935111653","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"tiny-editorconfig","version":"1.0.1","keywords":["editorconfig","parser","resolver"],"_id":"tiny-editorconfig@1.0.1","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/tiny-editorconfig#readme","bugs":{"url":"https://github.com/fabiospampinato/tiny-editorconfig/issues"},"dist":{"shasum":"62716ee5b16bd3459118ed0340117706d68eb7c2","tarball":"https://registry.npmjs.org/tiny-editorconfig/-/tiny-editorconfig-1.0.1.tgz","fileCount":29,"integrity":"sha512-V6AW3vnBrhhtYBPdTFTMaPNlziyNdyReG5wTbfYnKSy6nHScI/vfmtFuDx9sjpgOCutK+QpW+LVAl4QigdLssw==","signatures":[{"sig":"MEQCIHl4aflf8uQQg21zlc8Hak/4P+dgBNNnnW1ZsPFDqZKXAiB87HBrNP2gb7jygIoOngVoUqhzXNugNCrDR26SEr/P1g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18231},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"8d526925a615bea8cdb42a8511067d32fd110b06","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/tiny-editorconfig.git","type":"git"},"_npmVersion":"10.2.3","description":"A tiny isomorphic parser and resolver for EditorConfig.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"zeptomatch":"^2.0.2","ini-simple-parser":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.3.1","tsex":"^3.0.1","benchloop":"^2.1.1","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/tiny-editorconfig_1.0.1_1760474078260_0.7898279275243179","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"tiny-editorconfig","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/tiny-editorconfig.git"},"description":"A tiny isomorphic parser and resolver for EditorConfig.","license":"MIT","version":"1.0.2","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":["editorconfig","parser","resolver"],"dependencies":{"ini-simple-parser":"^1.0.1","zeptomatch":"^2.1.0"},"devDependencies":{"benchloop":"^2.1.1","fava":"^0.3.5","tsex":"^4.0.2","typescript":"^5.9.3"},"_id":"tiny-editorconfig@1.0.2","gitHead":"7e2618291c1b9a00436608fc5aef44e3a41f2077","bugs":{"url":"https://github.com/fabiospampinato/tiny-editorconfig/issues"},"homepage":"https://github.com/fabiospampinato/tiny-editorconfig#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-QVxndBgsEs5NMdOiUcZhj191moZW3yk0X6b7ItAqIkUGkSLl1IlfkXbraImOEyGqhRynWJjdFkn0a//smQV3GQ==","shasum":"1bfba5b46dc808b6200e1506c5596dfeba3db508","tarball":"https://registry.npmjs.org/tiny-editorconfig/-/tiny-editorconfig-1.0.2.tgz","fileCount":17,"unpackedSize":10132,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQChuIYC8PNHzR6hi6FeWmah8NGgArKeZJrmC9oq6U4r4gIgA/ApHZmhGE4kZwmL3bzM7yVMyJIXsFMWQvivYrEk9Xs="}]},"_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/tiny-editorconfig_1.0.2_1771708710293_0.12913756157204204"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-15T01:13:27.212Z","modified":"2026-02-21T21:18:30.527Z","1.0.0":"2023-11-15T01:13:27.449Z","1.0.1":"2025-10-14T20:34:38.452Z","1.0.2":"2026-02-21T21:18:30.427Z"},"bugs":{"url":"https://github.com/fabiospampinato/tiny-editorconfig/issues"},"homepage":"https://github.com/fabiospampinato/tiny-editorconfig#readme","keywords":["editorconfig","parser","resolver"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/tiny-editorconfig.git"},"description":"A tiny isomorphic parser and resolver for EditorConfig.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"readme":"# Tiny EditorConfig\n\nA tiny isomorphic parser and resolver for [EditorConfig](https://editorconfig.org/).\n\n## Install\n\n```sh\nnpm install tiny-editorconfig\n```\n\n## Usage\n\n```ts\nimport * as EditorConfig from 'tiny-editorconfig';\n\n// It can parse an .editorconfig string\n\nconst INPUT1 = `\n  root=true\n\n  [*]\n  charset = UTF-8\n  end_of_line = lf\n  indent_size = 2\n  indent_style = \"space\"\n  insert_final_newline = true\n  trim_trailing_whitespace = true\n\n  [*.md]\n  trim_trailing_whitespace = false\n`;\n\nconst parsed1 = EditorConfig.parse ( INPUT1 );\n// {\n//   root: true,\n//   overrides: {\n//     '*': {\n//       charset: 'utf-8',\n//       endOfLine: 'lf',\n//       indentSize: 2,\n//       indentStyle: 'space',\n//       insertFinalNewline: true,\n//       trimTrailingWhitespace: true\n//     },\n//     '*.md': {\n//       trimTrailingWhitespace: false\n//     }\n//   }\n// }\n\nconst INPUT2 = `\n  [*]\n  end_of_line = crlf\n  indent_size = 4\n`;\n\nconst parsed2 = EditorConfig.parse ( INPUT2 );\n// {\n//   overrides: {\n//     '*': {\n//       endOfLine: 'crlf',\n//       indentSize: 4\n//     }\n//   }\n// }\n\n// It can resolve multiple configurations for a given path\n\nconst resolved = resolve ( [PARSED1, PARSED2], '/path/to/test.md' );\n// {\n//   root: true,\n//   charset: 'utf-8',\n//   endOfLine: 'crlf',\n//   indentSize: 4,\n//   indentStyle: 'space',\n//   insertFinalNewline: true,\n//   trimTrailingWhitespace: false\n// }\n```\n\n## License\n\nMIT © Fabio Spampinato\n","readmeFilename":"readme.md","license":"MIT"}