![2024-03-05のJS: Parcel v2.12.0、`polyfill.io`の代用、express 4.18.3](https://cdn-ak-scissors.b.st-hatena.com/image/square/5e7cb687929a8acaabf8a7a0da4d8af4b66e64b7/height=288;version=1;width=512/https%3A%2F%2Fjser.info%2Fmedia%2Flogo.png)
HyperExpress aims to be a simple yet performant HTTP & Websocket Server. Combined with the power of uWebsockets.js, a Node.js binding of uSockets written in C++, HyperExpress allows developers to unlock higher throughput for their web applications with their existing hardware. This can allow many web applications to become much more performant on optimized data serving endpoints without having to
This is the first Express 5.0 beta release, based off 4.17.2 and includes changes from 5.0.0-alpha.8. change: Default "query parser" setting to 'simple' Requires Node.js 4+ Use mime-types for file to content type mapping deps: array-flatten@3.0.0 deps: body-parser@2.0.0-beta.1 req.body is no longer always initialized to {} urlencoded parser now defaults extended to false Use on-finished to determi
Too Long; Didn't Read This article focuses on sessions and how we forked express-session to make it more secure. Instead of building an independent session system, we decided to make a drop-in replacement for Express. We use public-key cryptography (ES256) so that you can architect your system with a single "session manager" service that issues tokens and accesses the private key, while you can ha
I have a web application built using Node.js and Express. Now I would like to list all registered routes with their appropriate methods. E.g., if I have executed app.get('/', function (...) { ... }); app.get('/foo/:id', function (...) { ... }); app.post('/foo/:id', function (...) { ... }); I would like to retrieve an object (or something equivalent to that) such as: { get: [ '/', '/foo/:id' ], pos
create-validator-tsというTypeScriptの型定義からJSON Schemaを使ったバリデーションコードを生成するツールを書きました。 モチベーション expressなどでAPIを書くときに、Request/Responseが意図したものかどうかをバリデーションする必要があります。 特にreq.queryなどはStringが入ると予想しますが、オブジェクトが入ってくることもあります。 これは、expressの内部で使っているqsというURLクエリのパーサが、オブジェクトや配列へ展開する機能を持っているためです。 expressを使ってるサイトは ?q=text があるときに req.query.q には オブジェクトが入る可能性をちゃんと考慮しないといけない。 ?q[a]=text で req.query.q ; // { a: "text" } になる — azu
In this article, we look at some of the more advanced features of TypeScript, like union types, conditional types, template literal types, and generics. We want to formalize the most dynamic JavaScript behavior in a way that we can catch most bugs before they happen. We apply several learnings from all chapters of TypeScript in 50 Lessons, a book we’ve published here on Smashing Magazine late 2020
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く