{"library":"prettier-plugin-ejs","title":"Prettier Plugin for EJS","description":"A Prettier plugin that formats EJS (Embedded JavaScript) templates within HTML files. Current stable version 1.0.3 supports Prettier 2.x and 3.x. It works by marking EJS tags as comments and relying on Prettier's built-in HTML parser, so it does not have its own parser — this keeps it lightweight but means EJS tags containing `>` are ignored. Compared to alternatives like prettier-plugin-ejs-by-ecmel, this is the most popular and maintained option. Release cadence is irregular, with infrequent updates; the plugin has been stable for years without major changes.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-ejs"],"cli":null},"imports":["// Prettier v3 CLI: prettier --plugin=prettier-plugin-ejs --write .","module.exports = {\n  plugins: ['prettier-plugin-ejs']\n}","const prettier = require('prettier'); const plugin = require('prettier-plugin-ejs');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install --save-dev prettier prettier-plugin-ejs\n# Prettier v3 usage:\nprettier --plugin=prettier-plugin-ejs --write \"**/*.html\"\n# Or create .prettierrc:\necho '{\"plugins\": [\"prettier-plugin-ejs\"]}' > .prettierrc","lang":"javascript","description":"Installs the plugin and formats all HTML files with EJS tags using Prettier v3.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}