{"_id":"@0xwaleed/woml","_rev":"2-749daa3345a171701b64ad552985d2dc","name":"@0xwaleed/woml","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@0xwaleed/woml","version":"0.0.1","module":"src/woml.ts","author":{"name":"0xWaleed","email":"https://github.com/0xWaleed"},"type":"module","types":"dist/woml.d.ts","scripts":{"build":"bun run build.mjs","prepublishOnly":"bun run build"},"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"homepage":"https://github.com/0xWaleed/woml","_id":"@0xwaleed/woml@0.0.1","gitHead":"72bb4fd0f759436434a2d2694522f7b2ffc12b0b","description":"Simple format for configuration","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-YsyXPpDybuWzO+nphKgeqD4sPC3qO5G1HTw6RBRrk1YQgwdTqnN60qBgku49svEDxRQhnuHkLYjAtAj8fsofsw==","shasum":"fa5d9b4a7431e642fb60d6de5c0bb38396d30850","tarball":"https://registry.npmjs.org/@0xwaleed/woml/-/woml-0.0.1.tgz","fileCount":4,"unpackedSize":3857,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtqDMm2REMmtDbhn0VpGrFjbBvDeohP38Q47+DSxy8UgIgcIGHpFyIq2fQyPjlZgmqJzDxfIo+7MRT/sPffXDKsJU="}]},"_npmUser":{"name":"0xwaleed","email":"imwaleed@outlook.sa"},"directories":{},"maintainers":[{"name":"0xwaleed","email":"imwaleed@outlook.sa"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/woml_0.0.1_1715778864290_0.6352970909437452"},"_hasShrinkwrap":false},"0.0.2":{"name":"@0xwaleed/woml","version":"0.0.2","module":"src/woml.ts","author":{"name":"0xWaleed","email":"https://github.com/0xWaleed"},"type":"module","main":"dist/woml.js","types":"dist/woml.d.ts","scripts":{"build":"bun run build.mjs","prepublishOnly":"bun run build"},"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"homepage":"https://github.com/0xWaleed/woml","_id":"@0xwaleed/woml@0.0.2","gitHead":"72bb4fd0f759436434a2d2694522f7b2ffc12b0b","description":"Simple format for configuration","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-TtSmyY5BjmRTF4Ai67A94a02ntqg8BBBNnxoxhfeD7bpo/ru6Kfmi1kdqMhKmoKH0zOsT4CdTVkefhe1O/FBMA==","shasum":"151584d8803108229af17776b10d08a0a9249ca8","tarball":"https://registry.npmjs.org/@0xwaleed/woml/-/woml-0.0.2.tgz","fileCount":4,"unpackedSize":3883,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5D5zyRA7gqABnT8boRurMN5YwJBUOLE+GGsd2HnqfTgIgVDSUvdAAMNKodRX2EhYJ4MzLrQgS8gdJ3aN0jeOVe+U="}]},"_npmUser":{"name":"0xwaleed","email":"imwaleed@outlook.sa"},"directories":{},"maintainers":[{"name":"0xwaleed","email":"imwaleed@outlook.sa"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/woml_0.0.2_1715779260090_0.9332940517588992"},"_hasShrinkwrap":false},"0.0.3":{"name":"@0xwaleed/woml","version":"0.0.3","module":"src/woml.ts","author":{"name":"0xWaleed","email":"https://github.com/0xWaleed"},"type":"module","main":"dist/woml.js","types":"dist/woml.d.ts","scripts":{"build":"bun run build.mjs","prepublishOnly":"bun run build"},"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"homepage":"https://github.com/0xWaleed/woml","_id":"@0xwaleed/woml@0.0.3","gitHead":"201966a8e49422a1708008d370710f2e49cbfccb","description":"Simple format for configuration","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-rQG736ogUl3TxiTncDr9Q0cQhkS+drzDpNeb7dvYoHH3qUQr7M7ahJ/m1KwyAfc84+AbDUFCb6YuhTKPgCOKGQ==","shasum":"6ab7655b5f48713a450fd15e7aa1821c4325b342","tarball":"https://registry.npmjs.org/@0xwaleed/woml/-/woml-0.0.3.tgz","fileCount":4,"unpackedSize":4189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFYw29vBTPQ+B2XR2ghFwvhcJn9BTJFcD3wz++rQcTBGAiAlydul67aQF0CvpxsAuvalYO3EJnO62BdWmUJgopHdFA=="}]},"_npmUser":{"name":"0xwaleed","email":"imwaleed@outlook.sa"},"directories":{},"maintainers":[{"name":"0xwaleed","email":"imwaleed@outlook.sa"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/woml_0.0.3_1715794420772_0.744834652352411"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-15T13:14:24.176Z","0.0.1":"2024-05-15T13:14:24.489Z","modified":"2024-05-15T17:33:41.103Z","0.0.2":"2024-05-15T13:21:00.394Z","0.0.3":"2024-05-15T17:33:40.930Z"},"maintainers":[{"name":"0xwaleed","email":"imwaleed@outlook.sa"}],"description":"Simple format for configuration","homepage":"https://github.com/0xWaleed/woml","author":{"name":"0xWaleed","email":"https://github.com/0xWaleed"},"readme":"# WOML\n\nSimple format for configuration\n\n\n## Example\n\n### Parsing\n```ts\nimport { parse } from \"./src/woml\";\n\nconst input = `\n[name]\nthis is my task name\n\n\n[o:session]\nwork = 25\nbreak = 10\n\n[a:tags]\ncoding\nopen source\n\n[a:benefits]\nmoney\nsocial\n`;\n\n\nconst o = parse(input) as any;\nconsole.log(o.benefits); // [\"money\", \"social\"]\nconsole.log(o.session[\"work\"]); // \"25\"\n```\n```ts\nconst input = `\n[desc]\nthis is a description\nand newline\n\n[a:tags]\ncoffee\npc\n\nhacking\n\n[o:options]\ninterval=2\ntheme=dark\ncolor=red\nupdate=true\n\n`;\nconst o = parse(input) as any;\nconsole.log(o.tags); // [\"pc\", \"coffee\", \"hacking\"]\nconsole.log(o.options[\"theme\"]); // \"dark\"\n```\n\n## Generate structure\n```ts\nconst output = generate({\n    \"$\": \"this is a root value that has no header\",\n    meta: \"object\",\n    name: {\n        type: \"string\",\n        value: \"this is my value\"\n    },\n    tags: {\n        type: \"array\",\n        value: [\n            \"coffee\",\n            \"programming\"\n        ]\n    },\n    config: {\n        type: \"object\",\n        value: {\n            theme: \"dark\",\n            color: \"gruvbox\"\n        }\n    }\n});\n\nconsole.log(output);\n/*\nthis is a root value that has no header\n\n[meta]\n\n[name]\nthis is my value\n\n[tags]\n- coffee\n- programming\n\n[config]\ntheme = dark\ncolor = gruvbox\n*/\n\n```\n","readmeFilename":"README.md"}