はじめに 少し前にフロントエンドのjs向けvalidatorフレームワークの favalid というものを作ったので、その紹介記事を書きます。 favalidの特徴 フロントエンドというかjs向けvalidatorといえば joi や yup 、v8nといったようなライブラリがありますが、それらに比べると機能を大幅に削り、とにかく軽量なのと関数型ライクなAPIがfavalidの特徴です。デフォルトのバリデーションメッセージすら入ってないので自分で定義しないとダメです。 ユースケースやコンフィグによりますが、最小構成でwebpackでbundleすると、1kbくらい。機能を色々盛り込んでも~10kbくらいになるかと思います。gzipを効かせれば容量は更に削減されるかと思います。 使い方 ここからは favalid の使い方を説明します。 インストール 普通に npm ないしは yarn で入
Stylish CLI prompts that are user-friendly, intuitive and easy to create. >_ Prompts should be more like conversations than inquisitions▌ (Example shows Enquirer's Survey Prompt) The terminal in all examples is Hyper, theme is hyper-monokai-extended. See more prompt examples Created by jonschlinkert and doowb, Enquirer is fast, easy to use, and lightweight enough for small projects, while also bei
Check out ts-base, a modern TypeScript library template using tsdown + Biome + Vitest JavaScript Templating: ReimaginedA powerful template engine that combines the best features from Nunjucks, Handlebars, EJS, and Pug: • Fantastic Performance - Squirrelly has best-in-class performance, beating other JS template engines in almost all benchmarks• Lightweight size - Only 4KB gzipped, despite supporti
On behalf of the Cloud Native Computing Foundation, I’m excited to announce the GA release of gRPC-Web, a JavaScript client library that enables web apps to communicate directly with backend gRPC services, without requiring an HTTP server to act as an intermediary. This means that you now easily build truly end-to-end gRPC application architectures by defining your client- and server-side data typ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く