
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ejs-cli-extended
Advanced tools
Extended EJS CLI tool with directory processing and watch functionality
Extended EJS CLI tool with directory processing and watch functionality.
.ejs files in a directory recursivelynpm install -g ejs-cli-extended
npm install ejs-cli-extended
When installed locally, you can run it with:
# Using npx
npx ejsc src:dist
# Using npm scripts
npm exec ejsc src:dist
# Or add to your package.json scripts
"scripts": {
"build": "ejsc src:dist"
}
Process a single EJS template file:
ejsc template.ejs -o output.html
ejsc template.ejs -f data.json -o output.html
Process all .ejs files in a directory:
ejsc src:dist
ejsc templates:build -f config.json
Continuously watch for changes and recompile:
# Single file
ejsc template.ejs -o output.html --watch
# Directory
ejsc src:dist --watch
All standard EJS CLI options are supported. For complete documentation, see the official EJS CLI repository.
--watch - Watch for changes and recompile automaticallyinput-dir:output-dir - Process directory (replaces single file path)# Process all .ejs files in 'templates' directory
# Output to 'dist' directory
ejsc templates:dist
# Use JSON data file for template variables
ejsc src:build -f data.json
# Watch for changes and auto-recompile
ejsc templates:dist --watch -f config.json
When using directory mode, the tool:
.ejs files in the input directory.ejs extensions to .htmlExample:
src/
├── index.ejs → dist/index.html
├── pages/
│ ├── about.ejs → dist/pages/about.html
│ └── contact.ejs → dist/pages/contact.html
└── components/
└── header.ejs → dist/components/header.html
This tool directly executes the official EJS CLI, ensuring 100% compatibility. All EJS CLI features are supported, including:
# All these work exactly like the official EJS CLI
ejsc template.ejs -o output.html
ejsc template.ejs -f data.json -o output.html
echo '{"name": "World"}' | ejsc template.ejs -o output.html
ejsc template.ejs -m $ -p [ -c ] -o output.html
You can use this tool as a complete drop-in replacement for the official EJS CLI.
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
Extended EJS CLI tool with directory processing and watch functionality
We found that ejs-cli-extended demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.