{"library":"ejs-lint","type":"library","category":null,"description":"Linter and syntax checker for EJS templates. Version 2.0.1 released September 2022. ESM-only since v2, requires Node 14+. Parses scriptlet and expression tags, replacing template output with whitespace to retain line/column numbers, then validates resulting JavaScript with acorn via node-syntax-error. Distinguishes itself from EJS core by providing meaningful syntax error messages with line context, supporting custom delimiters, CLI and API usage. Does not check for unclosed EJS tags but helps detect malformed scriptlets. Alternatives exist (e.g., eslint-plugin-ejs) but ejs-lint is the standalone, lightweight option.","language":"javascript","status":"active","version":"2.0.1","tags":["javascript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install ejs-lint","imports":["import ejsLint from 'ejs-lint'","import { execSync } from 'child_process'; execSync('npx ejslint file.ejs', {stdio: 'inherit'})","import type { SyntaxError } from 'node-syntax-error'"]},{"cmd":"yarn add ejs-lint","imports":[]},{"cmd":"pnpm add ejs-lint","imports":[]}],"homepage":null,"github":"https://github.com/ryanzim/ejs-lint","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ejs-lint","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}