{"_id":"@one-ini/wasm","_rev":"3715142","name":"@one-ini/wasm","description":"Parse EditorConfig-INI file contents into AST","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"florianb","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"time":{"modified":"2025-02-13T05:59:31.000Z","created":"2022-10-06T15:27:51.223Z","0.2.0":"2025-02-06T17:56:16.970Z","0.1.3":"2025-02-05T23:20:55.026Z","0.1.2":"2024-11-08T18:09:29.342Z","0.1.1":"2022-10-25T20:57:41.355Z","0.1.0":"2022-10-06T15:27:51.223Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/one-ini/core.git"},"versions":{"0.2.0":{"name":"@one-ini/wasm","collaborators":["Jed Mao <jedmao@outlook.com>","Joe Hildebrand <joe-github@cursive.net>","Florian Neumann <florian.neumann@mindkeeper.solutions>"],"description":"Parse EditorConfig-INI file contents into AST","version":"0.2.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/one-ini/core.git"},"main":"one_ini.js","types":"one_ini.d.ts","keywords":["editorconfig","ini","parser","ast"],"_id":"@one-ini/wasm@0.2.0","gitHead":"cfb2315a213b10136202944e83e0b653b19d8626","bugs":{"url":"https://github.com/one-ini/core/issues"},"homepage":"https://github.com/one-ini/core#readme","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"shasum":"598671af52636ea6e0a849d026ad0e7c110e91cf","size":42632,"noattachment":false,"key":"/@one-ini/wasm/-/@one-ini/wasm-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@one-ini/wasm/download/@one-ini/wasm-0.2.0.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"florianb","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wasm_0.2.0_1738864576714_0.8584796756889099"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-06T17:56:16.970Z","publish_time":1738864576970,"_source_registry_name":"default","_cnpm_publish_time":1738864576970},"0.1.3":{"name":"@one-ini/wasm","collaborators":["Jed Mao <jedmao@outlook.com>","Joe Hildebrand <joe-github@cursive.net>","Florian Neumann <florian.neumann@mindkeeper.solutions>"],"description":"Parse EditorConfig-INI file contents into AST","version":"0.1.3","license":"MIT","repository":{"type":"git","url":"git+https://github.com/one-ini/core.git"},"main":"one_ini.js","types":"one_ini.d.ts","keywords":["editorconfig","ini","parser","ast"],"_id":"@one-ini/wasm@0.1.3","gitHead":"9c24987d1b4e4acf492ed74c5e9645b7a44fd275","bugs":{"url":"https://github.com/one-ini/core/issues"},"homepage":"https://github.com/one-ini/core#readme","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"shasum":"b597c3cb881bd3c034e566666dfed6a9065c7401","size":42673,"noattachment":false,"key":"/@one-ini/wasm/-/@one-ini/wasm-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@one-ini/wasm/download/@one-ini/wasm-0.1.3.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"florianb","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wasm_0.1.3_1738797654803_0.37745060463489843"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-05T23:20:55.026Z","publish_time":1738797655026,"_source_registry_name":"default","_cnpm_publish_time":1738797655026},"0.1.2":{"name":"@one-ini/wasm","collaborators":["Jed Mao <jedmao@outlook.com>","Joe Hildebrand <joe-github@cursive.net>","Florian Neumann <florian.neumann@mindkeeper.solutions>"],"description":"Parse EditorConfig-INI file contents into AST","version":"0.1.2","license":"MIT","repository":{"type":"git","url":"git+https://github.com/one-ini/core.git"},"main":"one_ini.js","types":"one_ini.d.ts","keywords":["editorconfig","ini","parser","ast"],"_id":"@one-ini/wasm@0.1.2","gitHead":"add57f7e031f93de61e2a94bf3932d4aa12dd7e0","bugs":{"url":"https://github.com/one-ini/core/issues"},"homepage":"https://github.com/one-ini/core#readme","_nodeVersion":"23.1.0","_npmVersion":"10.9.0","dist":{"shasum":"f064a959710a3012005ebdb3acc62fa834ec5585","size":40909,"noattachment":false,"key":"/@one-ini/wasm/-/@one-ini/wasm-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@one-ini/wasm/download/@one-ini/wasm-0.1.2.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"florianb","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wasm_0.1.2_1731089369076_0.9908445244381632"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-08T18:09:29.342Z","publish_time":1731089369342,"_source_registry_name":"default","_cnpm_publish_time":1731089369342},"0.1.1":{"name":"@one-ini/wasm","collaborators":["Jed Mao <jedmao@outlook.com>","Joe Hildebrand <joe-github@cursive.net>","Florian Neumann <florian.neumann@mindkeeper.solutions>"],"description":"Parse EditorConfig-INI file contents into AST","version":"0.1.1","license":"MIT","repository":{"type":"git","url":"git+https://github.com/one-ini/core.git"},"main":"one_ini.js","types":"one_ini.d.ts","keywords":["editorconfig","ini","parser","ast"],"gitHead":"365f246526226e905d746e707a80941b0be24e3e","bugs":{"url":"https://github.com/one-ini/core/issues"},"homepage":"https://github.com/one-ini/core#readme","_id":"@one-ini/wasm@0.1.1","_nodeVersion":"18.11.0","_npmVersion":"8.19.2","dist":{"shasum":"6013659736c9dbfccc96e8a9c2b3de317df39323","size":36102,"noattachment":false,"key":"/@one-ini/wasm/-/@one-ini/wasm-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@one-ini/wasm/download/@one-ini/wasm-0.1.1.tgz"},"_npmUser":{"name":"hildjj","email":"joe-github@cursive.net"},"directories":{},"maintainers":[{"name":"florianb","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wasm_0.1.1_1666731461128_0.5621126144718869"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-25T21:08:17.411Z","publish_time":1666731461355,"_cnpm_publish_time":1666731461355},"0.1.0":{"name":"@one-ini/wasm","collaborators":["Jed Mao <jedmao@outlook.com>","Joe Hildebrand <joe-github@cursive.net>","Florian Neumann <florian.neumann@mindkeeper.solutions>"],"description":"Parse EditorConfig-INI file contents into AST","version":"0.1.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/one-ini/core.git"},"main":"one_ini.js","types":"one_ini.d.ts","keywords":["editorconfig","ini","parser","ast"],"gitHead":"9abe6a6f43ae09fea2fa630b520e8a603a8d586f","bugs":{"url":"https://github.com/one-ini/core/issues"},"homepage":"https://github.com/one-ini/core#readme","_id":"@one-ini/wasm@0.1.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.4","dist":{"shasum":"9afb7db5804f509490de695481cf05a00aef9ccd","size":35654,"noattachment":false,"key":"/@one-ini/wasm/-/@one-ini/wasm-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@one-ini/wasm/download/@one-ini/wasm-0.1.0.tgz"},"_npmUser":{"name":"florianb","email":"florian.neumann@mindkeeper.solutions"},"directories":{},"maintainers":[{"name":"florianb","email":""},{"name":"hildjj","email":"joe-github@cursive.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wasm_0.1.0_1665070071044_0.7700108477201733"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-06T15:27:56.522Z","publish_time":1665070071223,"_cnpm_publish_time":1665070071223}},"readme":"# One INI\n\nThe core implementation of an AST based, idiomatic INI parser which aims to provide an easy to implement and consistent INI-standard.\n\nThis reference implementation is provided as Rust-library and WASM-package.\n\n<!-- markdownlint-disable -->\n\n[![GitHub Actions](https://github.com/jedmao/editorconfig-ini/workflows/Rust/badge.svg?event=push)](https://github.com/jedmao/editorconfig-ini/actions)\n\n<!-- markdownlint-restore -->\n\n<!-- markdownlint-disable commands-show-output -->\n\nThe work on this project started with the search for an universal parser for the [EditorConfig INI file format specification](https://spec.editorconfig.org/#file-format).\n\n## WASM\n\nTo use from [Web Assembly](https://webassembly.org/), compile with:\n\n```sh\nwasm-pack build --release --target nodejs\n```\n\nand run the (limited) WASM tests with:\n\n```sh\nwasm-pack test --node\n```\n\nYou can call the generated JS wrapper with either:\n\n```js\nimport { parse_to_json } from './pkg/one_ini.js'\n\nconst results = parse_to_json(`\nroot = true\n\n[*]\n# always use unix line endings\nend_of_line = lf\n`)\n\n// {\n//   \"version\": \"0.1.0\",\n//   \"body\": [\n//     { \"type\": \"Pair\", \"key\": \"root\", \"value\": \"true\" },\n//     {\n//       \"type\": \"Section\",\n//       \"name\": \"*\",\n//       \"body\": [\n//         { \"type\": \"Comment\", \"indicator\": \"#\", \"value\": \"always use unix line endings\" },\n//         { \"type\": \"Pair\", \"key\": \"end_of_line\", \"value\": \"lf\" }\n//       ]\n//     }\n//   ]\n// }\n```\n\nor:\n\n```js\nimport { parse_to_uint32array, TokenTypes } from './pkg/editorconfig_ini.js'\nconst buf = Buffer.from(`\nroot = true\n\n[*]\n# always use unix line endings\nend_of_line = lf\n`, 'utf8')\nconst ary = parse_to_uint32array(buf)\n\n// Array with token type, start byte offset, end byte offset for each token\n// Uint32Array(21) [\n//   TokenTypes.Key, 1, 5,\n//   TokenTypes.Value, 8, 12,\n//   TokenTypes.Section, 15, 16,\n//   TokenTypes.CommentIndicator, 18, 19,\n//   TokenTypes.CommentValue, 20, 48,\n//   TokenTypes.Key, 49, 60,\n//   TokenTypes.Value, 63, 65\n// ]\n```\n","_attachments":{},"homepage":"https://github.com/one-ini/core#readme","bugs":{"url":"https://github.com/one-ini/core/issues"},"license":"MIT"}