{"_id":"@4az/prettier-plugin-html-erb","_rev":"7-7fa6972757fa66a798861b668a024f63","name":"@4az/prettier-plugin-html-erb","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"@4az/prettier-plugin-html-erb","version":"0.0.1","keywords":["prettier","plugin","template","html","ruby","erb","rails"],"author":{"name":"Daniel Castillo"},"license":"MIT","_id":"@4az/prettier-plugin-html-erb@0.0.1","maintainers":[{"name":"4az","email":"npm@4az.dev"}],"homepage":"https://github.com/forazens/prettier-plugin-html-erb#readme","bugs":{"url":"https://github.com/ForAzens/prettier-plugin-html-erb/issues"},"dist":{"shasum":"bcbbfc2ed8beffa3f11add5d1206bf28a2b89240","tarball":"https://registry.npmjs.org/@4az/prettier-plugin-html-erb/-/prettier-plugin-html-erb-0.0.1.tgz","fileCount":8,"integrity":"sha512-EozvAGkHBk3KYedWIKH2M6Tf/kqdFFGW81fmbk+H1fiuMw4p9tKZSL7ciS6vuNNZA4hHq2jgxTU+v6U16zc/uQ==","signatures":[{"sig":"MEQCIG5moxJHDNA+nByF1hHzyWAP9JTEP/CEcuxiHdaomwflAiAWll6e/VDvcJGUF+MYF0zn69OpSYQDdnRkkKoooPKUFQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17142},"main":"src/index.js","type":"module","gitHead":"a25442e10cc938db713062fd090e0e047072a3ff","private":false,"scripts":{"test":"vitest","build:regex":"babel src/regex_editable.js -o src/regex.js"},"_npmUser":{"name":"4az","email":"npm@4az.dev"},"repository":{"url":"git+https://github.com/forazens/prettier-plugin-html-erb.git","type":"git"},"_npmVersion":"10.8.2","description":"Prettier plugin for formatting html erb templates.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"regex":"^4.3.3"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.4","prettier":"^3.3.3","@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@prettier/plugin-ruby":"^4.0.4","babel-plugin-transform-regex":"^4.3.3"},"peerDependencies":{"prettier":"^3.0.0","@prettier/plugin-ruby":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-html-erb_0.0.1_1730751987600_0.5619249277739371","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@4az/prettier-plugin-html-erb","version":"0.0.2","keywords":["prettier","plugin","template","html","ruby","erb","rails"],"author":{"name":"Daniel Castillo"},"license":"MIT","_id":"@4az/prettier-plugin-html-erb@0.0.2","maintainers":[{"name":"4az","email":"npm@4az.dev"}],"homepage":"https://github.com/forazens/prettier-plugin-html-erb#readme","bugs":{"url":"https://github.com/ForAzens/prettier-plugin-html-erb/issues"},"dist":{"shasum":"3cd67c97b286da099fb341d2b9cc04d4df9f08ef","tarball":"https://registry.npmjs.org/@4az/prettier-plugin-html-erb/-/prettier-plugin-html-erb-0.0.2.tgz","fileCount":8,"integrity":"sha512-l2rYNRRArCas8SE03mJerl5sJNfJa1JQCGQd7N+qmZjprwe4Dycht9tePsPK+xrCrTIH++MuUofv45Z6PyYKJg==","signatures":[{"sig":"MEUCIQC36Ck7Ye7UBrdAC5ont2EJGcmZ23enTNXA+h8DEUukZgIgY3vpADx3HUoBmO9LgcBbvnfkPp/hm7Wj+Ekqz0i21kg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17125},"main":"src/index.js","type":"module","gitHead":"1353b3c3b131e43d19c1e3ee0f3cbd42b8892dd4","private":false,"scripts":{"test":"vitest","build:regex":"babel src/regex_editable.js -o src/regex.js"},"_npmUser":{"name":"4az","email":"npm@4az.dev"},"repository":{"url":"git+https://github.com/forazens/prettier-plugin-html-erb.git","type":"git"},"_npmVersion":"10.8.2","description":"Prettier plugin for formatting html erb templates.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"regex":"^4.4.0","vitest":"^2.1.4","prettier":"^3.3.3","@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@prettier/plugin-ruby":"^4.0.4","babel-plugin-transform-regex":"^4.3.3"},"peerDependencies":{"prettier":"^3.0.0","@prettier/plugin-ruby":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-html-erb_0.0.2_1730752832261_0.5079729650455271","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@4az/prettier-plugin-html-erb","version":"0.0.3","keywords":["prettier","plugin","template","html","ruby","erb","rails"],"author":{"name":"Daniel Castillo"},"license":"MIT","_id":"@4az/prettier-plugin-html-erb@0.0.3","maintainers":[{"name":"4az","email":"npm@4az.dev"}],"homepage":"https://github.com/forazens/prettier-plugin-html-erb#readme","bugs":{"url":"https://github.com/ForAzens/prettier-plugin-html-erb/issues"},"dist":{"shasum":"bd9f388e98165dcab286ef46186f13a814ce11c8","tarball":"https://registry.npmjs.org/@4az/prettier-plugin-html-erb/-/prettier-plugin-html-erb-0.0.3.tgz","fileCount":8,"integrity":"sha512-JQ9omdOkBxdybRsqvFutwaqpf65uk6/Y65p3lSeWVnsSZtWAMwgkZ+0bjFClOPUOhZIarwIkMK1sq3rHXBOBLw==","signatures":[{"sig":"MEQCIF/Gbrw1zZfml6WImyCK/jTtpd/PnJEb/JC6C0ABpilmAiBRK1UGYcvtkV8fa+xPbdPmzbo7FfR0qWzLvY46fnO0TA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17836},"main":"src/index.js","type":"module","gitHead":"6f5492a41d5f7bae0e9b5638f11bad0e3c377bc8","private":false,"scripts":{"test":"vitest","build:regex":"babel src/regex_editable.js -o src/regex.js"},"_npmUser":{"name":"4az","email":"npm@4az.dev"},"repository":{"url":"git+https://github.com/forazens/prettier-plugin-html-erb.git","type":"git"},"_npmVersion":"10.8.2","description":"Prettier plugin for formatting html erb templates.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"regex":"^4.4.0","vitest":"^2.1.4","prettier":"^3.3.3","@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@prettier/plugin-ruby":"^4.0.4","babel-plugin-transform-regex":"^4.3.3"},"peerDependencies":{"prettier":"^3.0.0","@prettier/plugin-ruby":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-html-erb_0.0.3_1730755816279_0.5590511298977616","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@4az/prettier-plugin-html-erb","version":"0.0.4","keywords":["prettier","plugin","template","html","ruby","erb","rails"],"author":{"name":"Daniel Castillo"},"license":"MIT","_id":"@4az/prettier-plugin-html-erb@0.0.4","maintainers":[{"name":"4az","email":"npm@4az.dev"}],"homepage":"https://github.com/forazens/prettier-plugin-html-erb#readme","bugs":{"url":"https://github.com/ForAzens/prettier-plugin-html-erb/issues"},"dist":{"shasum":"efe70fa8d8414fbed1b938c95a88e0b23ec498b0","tarball":"https://registry.npmjs.org/@4az/prettier-plugin-html-erb/-/prettier-plugin-html-erb-0.0.4.tgz","fileCount":8,"integrity":"sha512-S8UaPj4esfQNAW69DtQDZvXHs1/JJ3Do1tNU8bR5Gagm0BC1lyu81JNF8y/gZgczugGq+KgKWTh24CTKANmDMg==","signatures":[{"sig":"MEUCIFbbXmkK5Jt5qyEWr9zyX9wEA2spr3h/h5Bs7MhyBRw1AiEA8F4eUsEg8te+ncl3or89OVK/V8KBdcnBe2VCh52DKiU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21035},"main":"src/index.js","type":"module","gitHead":"c039ede5f3f66c99478e99dd5b6a25cc89e4bc37","private":false,"scripts":{"test":"vitest","build:regex":"babel src/regex_editable.js -o src/regex.js"},"_npmUser":{"name":"4az","email":"npm@4az.dev"},"repository":{"url":"git+https://github.com/forazens/prettier-plugin-html-erb.git","type":"git"},"_npmVersion":"10.8.2","description":"Prettier plugin for formatting html erb templates.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"regex":"^4.4.0","vitest":"^2.1.4","prettier":"^3.3.3","@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@prettier/plugin-ruby":"^4.0.4","babel-plugin-transform-regex":"^4.3.3"},"peerDependencies":{"prettier":"^3.0.0","@prettier/plugin-ruby":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-html-erb_0.0.4_1730830820537_0.5347452128723535","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@4az/prettier-plugin-html-erb","version":"0.0.5","keywords":["prettier","plugin","template","html","ruby","erb","rails"],"author":{"name":"Daniel Castillo"},"license":"MIT","_id":"@4az/prettier-plugin-html-erb@0.0.5","maintainers":[{"name":"4az","email":"npm@4az.dev"}],"homepage":"https://github.com/forazens/prettier-plugin-html-erb#readme","bugs":{"url":"https://github.com/ForAzens/prettier-plugin-html-erb/issues"},"dist":{"shasum":"f8ee33cf4181da87fd13cb584ec7a2c09630349a","tarball":"https://registry.npmjs.org/@4az/prettier-plugin-html-erb/-/prettier-plugin-html-erb-0.0.5.tgz","fileCount":8,"integrity":"sha512-TRAVCBD9CFWOrJ7B3V8NQnO4c82FkSBvGXhZN7mIRJjj+EoJ2cQngq4V1ujb7VDroM4LcOiz9MZMPw8CFZBPCg==","signatures":[{"sig":"MEYCIQC02IEPBjqwv41oOgxVCrxudDqmopEB6G6L2qEqwCuhqAIhAIEVlcesH9UGbiD1a8qwjzk1/wjyuSxlgTnGcVRIMOsb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21685},"main":"src/index.js","type":"module","gitHead":"2a7a2e309bc9271df5b8294519a69d2a7a37d82f","private":false,"scripts":{"test":"vitest","build:regex":"babel src/regex_editable.js -o src/regex.js"},"_npmUser":{"name":"4az","email":"npm@4az.dev"},"repository":{"url":"git+https://github.com/forazens/prettier-plugin-html-erb.git","type":"git"},"_npmVersion":"10.8.2","description":"Prettier plugin for formatting html erb templates.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"regex":"^4.4.0","vitest":"^2.1.4","prettier":"^3.3.3","@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@prettier/plugin-ruby":"^4.0.4","babel-plugin-transform-regex":"^4.3.3"},"peerDependencies":{"prettier":"^3.0.0","@prettier/plugin-ruby":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-html-erb_0.0.5_1731003203157_0.5034555510283212","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@4az/prettier-plugin-html-erb","version":"0.0.6","keywords":["prettier","plugin","template","html","ruby","erb","rails"],"author":{"name":"Daniel Castillo"},"license":"MIT","_id":"@4az/prettier-plugin-html-erb@0.0.6","maintainers":[{"name":"4az","email":"npm@4az.dev"}],"homepage":"https://github.com/forazens/prettier-plugin-html-erb#readme","bugs":{"url":"https://github.com/ForAzens/prettier-plugin-html-erb/issues"},"dist":{"shasum":"1040cd6e3bc488c6668b03120eb119caebc49fc7","tarball":"https://registry.npmjs.org/@4az/prettier-plugin-html-erb/-/prettier-plugin-html-erb-0.0.6.tgz","fileCount":8,"integrity":"sha512-PB2jcgU6mIlp8tTLzDD756FcT1+lKKCCwACh/XX+hU5nEEaNsdX6eHZkznlqyw1LiFpyYGc381M44gywOpPy4Q==","signatures":[{"sig":"MEUCICEbuc98gaQNDOKnpYQjEJeb6to0rxNT2LAm3dSNCDBfAiEA1XuCH8Yh86c7xef2JuxUhWEhaf8savMXrfC/8aQkABo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21658},"main":"src/index.js","type":"module","gitHead":"2ae61065b22fccad90f9a6cfb6a88312f57877cb","private":false,"scripts":{"test":"vitest","build:regex":"babel src/regex_editable.js -o src/regex.js"},"_npmUser":{"name":"4az","email":"npm@4az.dev"},"repository":{"url":"git+https://github.com/forazens/prettier-plugin-html-erb.git","type":"git"},"_npmVersion":"10.8.2","description":"Prettier plugin for formatting html erb templates.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"regex":"^4.4.0","vitest":"^2.1.4","prettier":"^3.3.3","@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@prettier/plugin-ruby":"^4.0.4","babel-plugin-transform-regex":"^4.3.3"},"peerDependencies":{"prettier":"^3.0.0","@prettier/plugin-ruby":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-html-erb_0.0.6_1731009456321_0.24128180431814616","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"@4az/prettier-plugin-html-erb","author":{"name":"Daniel Castillo"},"private":false,"version":"0.0.7","description":"Prettier plugin for formatting html erb templates.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/Nilkee/prettier-plugin-html-erb.git"},"homepage":"https://github.com/Nilkee/prettier-plugin-html-erb#readme","bugs":{"url":"https://github.com/Nilkee/prettier-plugin-html-erb/issues"},"keywords":["prettier","plugin","template","html","ruby","erb","rails"],"main":"src/index.js","type":"module","scripts":{"build:regex":"babel src/regex_editable.js -o src/regex.js","test":"vitest"},"peerDependencies":{"@prettier/plugin-ruby":"^4.0.0","prettier":"^3.0.0"},"devDependencies":{"@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@prettier/plugin-ruby":"^4.0.4","babel-plugin-transform-regex":"^4.3.3","prettier":"^3.3.3","regex":"^4.4.0","vitest":"^2.1.4"},"_id":"@4az/prettier-plugin-html-erb@0.0.7","gitHead":"bd1ab69ccf67d13d4f0ec5a296bef941e083b84b","_nodeVersion":"22.14.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-R5Y7/y+6W5A742NXg9HtWjxDF2Gblo62RO6+mLyusO3DJYr4Z/DfJVP+ol/QLMvGKGw75SY5Iq8i9/niJXrNPg==","shasum":"59856f4ab61fab8a40b94fc4d69e5f0846d1c28e","tarball":"https://registry.npmjs.org/@4az/prettier-plugin-html-erb/-/prettier-plugin-html-erb-0.0.7.tgz","fileCount":8,"unpackedSize":21910,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFqDL6w8j+W75mjEijquSSBptzpUDzx89idEdf7TOQ3mAiEA+YFgx/4sa8DYkIMKUGkeifLYUbPA/ecTUZaBUtejDwM="}]},"_npmUser":{"name":"4az","email":"npm@4az.dev"},"directories":{},"maintainers":[{"name":"4az","email":"npm@4az.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prettier-plugin-html-erb_0.0.7_1749907580198_0.2208487182043828"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-04T20:26:27.486Z","modified":"2025-06-14T13:26:20.626Z","0.0.1":"2024-11-04T20:26:27.833Z","0.0.2":"2024-11-04T20:40:32.528Z","0.0.3":"2024-11-04T21:30:16.465Z","0.0.4":"2024-11-05T18:20:20.689Z","0.0.5":"2024-11-07T18:13:23.333Z","0.0.6":"2024-11-07T19:57:36.498Z","0.0.7":"2025-06-14T13:26:20.417Z"},"bugs":{"url":"https://github.com/Nilkee/prettier-plugin-html-erb/issues"},"author":{"name":"Daniel Castillo"},"license":"MIT","homepage":"https://github.com/Nilkee/prettier-plugin-html-erb#readme","keywords":["prettier","plugin","template","html","ruby","erb","rails"],"repository":{"type":"git","url":"git+https://github.com/Nilkee/prettier-plugin-html-erb.git"},"description":"Prettier plugin for formatting html erb templates.","maintainers":[{"name":"4az","email":"npm@4az.dev"}],"readme":"# @4az/prettier-plugin-html-erb\nA prettier plugin for html erb template files that works with prettier v3.\n\n# Install\n## Node\n```bash\nnpm install --save-dev prettier @4az/prettier-plugin-html-erb @prettier/plugin-ruby\n```\n```bash\nyarn add -D prettier @4az/prettier-plugin-html-erb @prettier/plugin-ruby\n```\n```bash\npnpm install --save-dev prettier @4az/prettier-plugin-html-erb @prettier/plugin-ruby\n```\n\n## Ruby\nIf you want to install the dependencies globally:\n```bash\ngem install bundler prettier_print syntax_tree\n```\n\nOr if you are using bundler:\n```bash\nbundler add prettier_print syntax_tree --group=\"development\"\n```\n\nIf you're having problems, check the repository of [@prettier/plugin-ruby](https://github.com/prettier/plugin-ruby?tab=readme-ov-file#getting-started).\n\n# Use\nAdd the plugins to your `.prettierrc`:\n```json\n{\n    \"plugins\": [\"@prettier/plugin-ruby\", \"@4az/prettier-plugin-html-erb\"]\n}\n```\n\nIf any file doesn't format, check the output running prettier in the terminal:\n```bash\nnpx prettier ./src/myfile.html.rb\n```\n\n# Configuration\nThis plugin doesn't have any special config. You can configure the ruby formatting using the options of [@prettier/plugin-ruby](https://github.com/prettier/plugin-ruby?tab=readme-ov-file#configuration).\n\n# Roadmap\nThere are a number of features I want to support:\n- [x] Support erb delimiters. Ex: `<%- delimiters -%>`.\n- [ ] Port library to TypeSript.\n- [ ] Add a way to ignore sections of code of being formatted.\n- [ ] Support more ways to format blocks.\n\n# Testing\nTo run tests:\n```\ngit clone https://github.com/ForAzens/prettier-plugin-html-erb.git\ncd prettier-plugin-html-erb\nnpm install\ngem install bundler prettier_print syntax_tree\nnpm run test\n```\n\n# Special thanks\n[@davidodenwald](https://github.com/davidodenwald) for his plugin [prettier-plugin-jinja-template](https://github.com/davidodenwald/prettier-plugin-jinja-template) which served as a base for this plugin.\n\n# License\n[MIT](https://github.com/ForAzens/prettier-plugin-html-erb/blob/main/LICENSE)\n","readmeFilename":"README.md"}