Gathering detailed insights and metrics for eta
Gathering detailed insights and metrics for eta
Gathering detailed insights and metrics for eta
Gathering detailed insights and metrics for eta
node-eta
Estimated time of arrival
request-progress
Tracks the download progress of a request made with mikeal/request, giving insight of various metrics including progress percent, download speed and time remaining
hk-bus-eta
Query the ETA (Estimated Time of Arrival) of HK Bus/Minibus/MTR/Lightrail
@uppy/status-bar
A progress bar for Uppy, with many bells and whistles.
Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
npm install eta
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.4
Supply Chain
100
Quality
80.1
Maintenance
100
Vulnerability
100
License
TypeScript (71.38%)
JavaScript (14.47%)
HTML (14.15%)
Total Downloads
78,060,439
Last Day
53,074
Last Week
1,048,534
Last Month
4,018,194
Last Year
35,993,103
MIT License
1,505 Stars
674 Commits
65 Forks
10 Watchers
2 Branches
28 Contributors
Updated on May 21, 2025
Minified
Minified + Gzipped
Latest Version
3.5.0
Package Id
eta@3.5.0
Unpacked Size
265.34 kB
Size
73.92 kB
File Count
35
NPM Version
10.7.0
Node Version
20.14.0
Published on
Aug 12, 2024
Cumulative downloads
Total Downloads
Last Day
4.8%
53,074
Compared to previous day
Last Week
7.6%
1,048,534
Compared to previous week
Last Month
7.7%
4,018,194
Compared to previous month
Last Year
61.7%
35,993,103
Compared to previous year
26
Documentation - Chat - RunKit Demo - Playground
You're viewing the source for Eta v3, which we just released! For v2, visit the old branch.
Eta is a lightweight and blazing fast embedded JS templating engine that works inside Node, Deno, and the browser. It's written in TypeScript and emphasizes great performance, configurability, and small bundle size.
<%= someval + "string %>" %>
compiles correctly, while it fails with doT or EJSFor more thorough documentation, visit https://eta.js.org
Install Eta
1npm install eta
In the root of your project, create templates/simple.eta
1Hi <%= it.name %>!
Then, in your JS file:
1import { Eta } from "eta"; 2// import { Eta } from "https://deno.land/x/eta@v3.1.0/src/index.ts"; 3 4const eta = new Eta({ views: path.join(__dirname, "templates") }); 5 6// Render a template 7 8const res = eta.render("./simple", { name: "Ben" }); 9console.log(res); // Hi Ben!
"Eta" means tiny in Esperanto. Plus, it can be used as an acronym for all sorts of cool phrases: "ECMAScript Template Awesomeness", "Embedded Templating Alternative", etc....
Additionally, Eta is a letter of the Greek alphabet (it stands for all sorts of cool things in various mathematical fields, including efficiency) and is three letters long (perfect for a file extension).
@shadowtime2000 created eta-vscode.
eslint-plugin-eta was created to provide an ESLint processor so you can lint your Eta templates.
Currently there is no official Webpack integration but @clshortfuse shared the loader he uses:
1{ 2 loader: 'html-loader', 3 options: { 4 preprocessor(content, loaderContext) { 5 return eta.render(content, {}, { filename: loaderContext.resourcePath }); 6 }, 7 }, 8}
To render Eta templates in Koa web framework: @cedx/koa-eta
eta
Made with ❤ by @nebrelbug and all these wonderful contributors (emoji key):
Ben Gubler 💻 💬 📖 ⚠️ | Clite Tailor 🤔 💻 | Ioan CHIRIAC 💻 🤔 | Craig Morten 💻 | Rajan Tiwari 💡 | shadowtime2000 💻 🤔 ⚠️ | Hamza Hamidi 📖 |
Calum Knott 🤔 | nhaef 💻 | Gün 💻 |
This project follows the all-contributors specification. Contributions of any kind are welcome!
8.8/10
Summary
Eta vulnerable to Code Injection via templates rendered with user-defined data
Affected Versions
< 2.0.0
Patched Versions
2.0.0
8.6/10
Summary
XSS Attack with Express API
Affected Versions
< 2.0.0
Patched Versions
2.0.0
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 11/30 approved changesets -- score normalized to 3
Reason
0 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 1
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-19
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More