
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
[](https://travis-ci.org/boycgit/ette) [](https://coveralls.io/github/boycgit/ette?branch=master
Event-Driver message communication framework, koa style, to make browser web applications and APIs more enjoyable to write and maintain.
npm install ette --save
var Ette = require('ette');
Include the pre-built script.
<script src="./dist/index.umd.min.js"></script>
npm run build
npm test
var App = require('ette');
const app = new App({domain: 'any-domain-name'});
const client = app.client;
app.use((ctx, next) => {
const req = ctx.request;
console.log('request:'+ JSON.stringify(req.toJSON()));
// çžåœç®åçè·¯ç±
if (req.path === '/users/1') {
ctx.response.body = { hello: 'jscon' };
} else if (req.path === '/users/2') {
ctx.response.body = { hello: 'nancy' };
} else {
ctx.response.body = { hello: 'anonymity' };
}
ctx.response.status = 200;
return next();
});
client.post(`/users/4`)
.then(res => {
console.log('/users/4:' + JSON.stringify(res));
})
.catch(err => {
console.log(err);
});
console output will be:
request:{"method":"POST","url":"//any-domain-name/users/4","type":"JSON"}
/users/4:{"status":200,"statusText":"OK","type":"JSON","body":{"hello":"anonymity"}}
åè koa-router: https://github.com/koajs/router/blob/master/API.md
npm run doc
then open the generated out/index.html
file in your browser.
MIT.
FAQs
[](https://travis-ci.org/boycgit/ette) [](https://coveralls.io/github/boycgit/ette?branch=master
The npm package ette receives a total of 3 weekly downloads. As such, ette popularity was classified as not popular.
We found that ette demonstrated a not healthy version release cadence and project activity because the last version was released 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.