並び順

ブックマーク数

期間指定

  • から
  • まで

121 - 160 件 / 264件

新着順 人気順

NodeJsの検索結果121 - 160 件 / 264件

  • A Visual Guide to NodeJS Streams

    Background Image Courtesy: Photo by Joshua Sortino on UnsplashImagine you have a pile of bricks somewhere. And you want to build a wall with those bricks here. Let’s say you have a friend to help move the bricks. To start building, you now have two options. You can either wait until your friend brings the whole pile of bricks to you, or you can start building as soon as you have a few bricks to st

      A Visual Guide to NodeJS Streams
    • GitHub - tapjs/tsimp: A TypeScript IMPort loader for Node.js

      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

        GitHub - tapjs/tsimp: A TypeScript IMPort loader for Node.js
      • Cloudflare Workers を使う前に知っておきたい注意点

        Cloudflare WorkersでNode.jsを動かすためのあれこれをスクラップに残していたのですが、ハマったポイントが多かったのでこちらに整理しておきます。 今回やろうとしたのは、Zennのマークダウン→HTML変換のAPIをCloudflare Workersで動かすというものです。試行錯誤の末に断念したのですが、以下でその理由をまとめておきます。 CPUやメモリ、ファイルサイズなどの制限が厳しめ 2023/07/25時点でのCloudflare Workersの制限一覧がこちら。 Limits - Cloudflare Workers CDNのエッジで動くので、パフォーマンスが良いぶん制限が厳しめです。 メモリ上限は128MB サイズ上限は無料プランだと圧縮後1MBまで 有料プランだと10MBの上限となるが、できるかぎり1MB以内に抑えたい(参考:Server Side Jav

          Cloudflare Workers を使う前に知っておきたい注意点
        • AWS SAM CLI 再入門 2021.08 - Qiita

          この記事は AWS Advent Calendar 2019 16日目の記事でした。 2020/7/21 に AWS SAM CLI が General Available となっため、v1.0.0 時点の情報に更新しました。 2021/8/24 に v1.29.0 時点の情報に更新しました。 はじめに 2018年の5月にaws-sam-local 改め aws-sam-cli の新機能 sam init を試すという記事を投稿しました。 AWS SAM CLI は GitHub 上で開発が行われていますが、リリースのペースが早く日々機能追加や改善が行われています。結果として上記の記事の内容は一部古いものとなっています。本記事では2021年8月22日時点の最新バージョンである v1.29.0 までのリリースを踏まえた使い方をご紹介します。 AWS SAM と AWS SAM CLI Ser

            AWS SAM CLI 再入門 2021.08 - Qiita
          • Node.jsのQUICを先取りして使ってみよう - nwtgck / Ryo Ota

            Node.jsでHTTP/3でも使われるプロトコルQUICを使いたい。現状ビルドする必要があるため、Dockerイメージを作って誰でも再現的にQUICを試せるようにしたい。

            • Node.js: The Documentary | An origin story

              Back in 2008, most people thought of JavaScript as just a client-side language. But when Google's V8 appeared, young developer Ryan Dahl made the connection between non-blocking servers, V8, and JavaScript. It was by combining these key elements that he was able to create the now hugely popular Node.js. What young Ryan Dahl probably didn't expect was how much forking drama would follow. Join us

                Node.js: The Documentary | An origin story
              • Node.js compatibility for Cloudflare Workers – starting with Async Context Tracking, EventEmitter, Buffer, assert, and util

                Node.js compatibility for Cloudflare Workers – starting with Async Context Tracking, EventEmitter, Buffer, assert, and util2023-03-23 Over the coming months, Cloudflare Workers will start to roll out built-in compatibility with Node.js core APIs as part of an effort to support increased compatibility across JavaScript runtimes. We are happy to announce today that the first of these Node.js APIs –

                  Node.js compatibility for Cloudflare Workers – starting with Async Context Tracking, EventEmitter, Buffer, assert, and util
                • Sass: Node Sass is end-of-life

                  The time has finally come to retire Node Sass. This Node.js wrapper for LibSass was the first official Sass compiler available in the JavaScript ecosystem and was a huge part of Sass growing beyond the scope of the Ruby community where it originated, but it hasn't received a new release in a year and a half and the most recent set of maintainers no longer have the bandwidth to continue updating it

                  • Mako - Extremely fast, Production-grade web bundler

                    An extremely fast, production-grade web bundler based on Rust. Mako is a new web bundler for Web App, Library, and Framework. It's designed to be fast, reliable, and easy to use. It has been used in hundreds of projects in production by Ant Group, and other companies. If you are looking for a modern web bundler, Mako is the right choice. Getting Started $ npm create mako Why Mako Mako has a lot of

                    • CommonJSとES Modulesについてまとめる

                      モチベーション 普段フロントエンドを領分にしているのになかなかこのあたりの基礎が足りていないと感じることが多いので、なんとかしたい。 ES Modules方式でしか対応されていないライブラリを使おうとしてコケたので色々調べたのも含め、まとめていく。 ちなみにその辺りについてはこの神記事見ると良い。 個人的に気になっているモジュールシステムについて掘り下げていく。 CommonJS CommonJSとは、サーバーサイドなどのウェブブラウザ環境外におけるJavaScriptの各種仕様を定めることを目標としたプロジェクトである。 from Wikipedia 例えばNode.jsで使われている。 Node.jsはデフォルトで全てのモジュールをCommonJSで扱うが、Node.jsは最近のバージョンでES Modulesに対応するなどしていて、潮流はES Modulesに流れつつある。 後述する

                        CommonJSとES Modulesについてまとめる
                      • Prototype Pollution in Kibana

                        Working at Securitum Pentester / Researcher / Web Security Instructor Bug bounty hunter 0x08 place at Google's 0x0A Loving client-side security Speaking XSS Prototype-based inheritance What's prototype pollution anyway? DEMO: RCE via prototype pollution in Kibana Lessons learnt

                          Prototype Pollution in Kibana
                        • GitHub - nodejs/corepack: Zero-runtime-dependency package acting as bridge between Node projects and their package managers

                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                            GitHub - nodejs/corepack: Zero-runtime-dependency package acting as bridge between Node projects and their package managers
                          • GitHub - lmammino/s3st: A command line utility that allows you to stream data from multiple S3 objects directly into your terminal

                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                              GitHub - lmammino/s3st: A command line utility that allows you to stream data from multiple S3 objects directly into your terminal
                            • Introducing humanfs (formerly fsx): A modern filesystem API for JavaScript - Human Who Codes

                              The JavaScript APIs we have today are so much better than those we had even a decade ago. Consider the transition for XMLHttpRequest to fetch(): the developer experience is dramatically better, allowing us to write more succinct, functional code that accomplishes the same thing. The introduction of promises for asynchronous programming allowed this change, along with a series of other changes that

                              • process.getBuiltinModule(id) は TypeScript を ESM 化させるか?

                                こんにちは teppeis です。普段は開発本部長をやってますが、ブログフェスに駆り出されました! 本日は Node v22.3.0 に続いて v20.16.0 にもバックポートされた process.getBuiltinModule(id) について解説します。 問題: 同期的な条件付き require を ESM 化できない Node v22 にて、フラグ付きで CJS (CommonJS Modules) から ESM を require できるようになりました。いわゆる require(esm) です。これにより、今までは互換性の懸念で ESM 化を足踏みしていた著名ライブラリも ESM 化を試みる動きが出てきました。 TypeScript もその一つで、TypeScript チームは TypeScript 自体を ESM 化しようと試みました。しかしながら、今回の主題である条件付

                                  process.getBuiltinModule(id) は TypeScript を ESM 化させるか?
                                • 人気のJSON Webトークンライブラリに脆弱性 影響範囲は

                                  Palo Alto Networksが発見したリモートコード実行(RCE: Remote Code Execution)の脆弱性「CVE-2022-23529」は、共通脆弱性評価システム(CVSS: Common Vulnerability Scoring System)のスコア値で7.6となり、深刻度は「重要」(High)とされる。 脆弱性が存在するとされるプロダクトおよびバージョンは以下だ。 node-jsonwebtoken 8.5.1およびこれよりも前のバージョン 脆弱性が修正されたプロダクトおよびバージョンは以下だ。 node-jsonwebtoken バージョン9.0.0 同脆弱性はリモートコード実行が可能だが、実際にサイバーセキュリティ攻撃を行うのは困難だと分析される。共通脆弱性評価システムで「緊急」(Critical)に分類されていないのはそうした理由からだ。 一方、Jso

                                    人気のJSON Webトークンライブラリに脆弱性 影響範囲は
                                  • GitHub - openai/openai-node: The official Node.js / Typescript library for the OpenAI API

                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                      GitHub - openai/openai-node: The official Node.js / Typescript library for the OpenAI API
                                    • GitHub - aerotoad/neboa: Type-safe NoSQL with Node & SQLite. 🌫️💽

                                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                        GitHub - aerotoad/neboa: Type-safe NoSQL with Node & SQLite. 🌫️💽
                                      • AWS CDKでLambda Function用のTypeScriptのバンドルを簡単に行う | DevelopersIO

                                        AWS CDKにParcelを使ってJavaScript/TypeScriptをバンドルしてくれるモジュールが追加されました!使い方をご紹介します。 はじめに おはようございます、加藤です。先日リリースされたAWS CDK 1.23から、aws-lambda-nodejsというモジュールが追加されました。これを使う事で、Lambda Function用のTypeScriptのトランスコンパイルとバンドルを簡単に行う事ができるのでご紹介します。 aws-lambda-nodejs ってなに? 現在このモジュールはベータ版です。ご注意ください Node.jsでLambda Functionを作る為のHigh level Constructです。Lambda Functionに外部モジュールを参照するコードをデプロイする場合は、当然それらを一緒にデプロイするかLambda Layerにデプロイす

                                          AWS CDKでLambda Function用のTypeScriptのバンドルを簡単に行う | DevelopersIO
                                        • Node.js Web アプリケーションを Docker 化する | Node.js

                                          Node.js Web アプリケーションを Docker 化する この例の目的は、Node.js アプリケーションを Docker コンテナに取り込む方法を説明することです。 このガイドは開発を目的としており、 本番展開を目的としていません。 このガイドでは、正常に Docker がインストールされ、 Node.js アプリケーションがどのように構成されているかについての基本的な知識があることも前提としています。 このガイドの最初の部分では、Node.js で単純な Web アプリケーションを作成してから、 そのアプリケーション用の Docker イメージを作成し、 最後にそのイメージをコンテナとして実行します。 Docker を使用すると、ソフトウェア開発用に、コンテナと呼ばれる標準化された単位に すべての依存関係を持つアプリケーションをパッケージ化できます。 コンテナは、Linux オ

                                            Node.js Web アプリケーションを Docker 化する | Node.js
                                          • package-manager-best-practices/published/npm.md at main · ossf/package-manager-best-practices

                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                              package-manager-best-practices/published/npm.md at main · ossf/package-manager-best-practices
                                            • Node.jsのバージョンを16に更新した時にはまってしまったこと - RareJob Tech Blog

                                              はじめに こんにちは。APP/UXグループの大谷と申します。 寒くなってきてグラコロが美味しい季節ですね。年がわりで発売されるデミグラスソースがかかっているバージョンより、ノーマルバージョンのグラコロが個人的には好みです。 バージョンといえば先日Node.jsのバージョンを更新した際に困ったことについて書いていきたいと思います。 何が起きたか 弊社では一部の機能の画面をNuxtを使って提供しており、server middlewareをBFFとして利用しAPIリクエストはserver middlewareを経由して投げられています。 (詳しい構成についてはこちらの記事に添付の資料をご参照ください) 今回はNode.jsのバージョンを v12 → v14 → v16に段階的に更新する作業をおこなっていました。(バージョンが一部歯抜けになっているのは依存関係の解消の関係でやりやすかったバージョン

                                                Node.jsのバージョンを16に更新した時にはまってしまったこと - RareJob Tech Blog
                                              • LTSのはずの「Node.js 16」のサポート期間が7カ月短縮 ~2023年9月11日までに/「OpenSSL 1.1.1」のサポート終了に合わせた措置

                                                  LTSのはずの「Node.js 16」のサポート期間が7カ月短縮 ~2023年9月11日までに/「OpenSSL 1.1.1」のサポート終了に合わせた措置
                                                • WSL 2 上で Node.jis を設定する

                                                  Node.js をプロフェッショナルとして使用する場合に、パフォーマンス速度とシステム コールの互換性が重要であると考えていて、Linux ワークスペースを活用する Docker コンテナーを実行し、Linux と Windows の両方のビルド スクリプトを管理する必要がないようにしたい場合、Linux 用 Windows サブシステム (より具体的には WSL 2) 上に Node.js をインストールしてください。 Linux 用 Windows サブシステム (WSL) を使用すると、好みの Linux ディストリビューション (Ubuntu が既定) をインストールできるため、開発環境 (コードを作成する場所) と実稼働環境 (コードが配置されるサーバー) との間に一貫性を持たせることができます。 WSL 2 のインストール WSL 2 は Windows で利用可能な最新バージ

                                                    WSL 2 上で Node.jis を設定する
                                                  • Apollo のキャッシュ機構、完全に理解した(い) - JX通信社エンジニアブログ

                                                    この記事は JX 通信社アドベントカレンダー、GraphQL アドベントカレンダーの4日目です こんにちは、JX通信社の小笠原(@yamitzky)です。普段はエンジニア部門の統括をしています。 弊社の NewsDigest ではアプリ向けのバックグラウンド API として GraphQL を使っています(サーバーは gqlgen、アプリはライブラリなし)。 tech.jxpress.net GraphQL の技術スタックとしては Apollo というライブラリが有名だと思うのですが、弊社では使ったことがありませんでした。そこで、今年の 9 月に箱根で開催した開発合宿にて、Apollo Client(React) と Apollo Server の検証を行いました。 Apollo Client を使うときに唯一鬼門だったのが、Apollo の持っているキャッシュ機構です。本日は、Apoll

                                                      Apollo のキャッシュ機構、完全に理解した(い) - JX通信社エンジニアブログ
                                                    • Node.js — Node.js 22 is now available!

                                                      We're excited to announce the release of Node.js 22! Highlights include require()ing ES modules, a WebSocket client, updates of the V8 JavaScript engine, and more! Node.js 22 will enter long-term support (LTS) in October, but until then, it will be the "Current" release for the next six months. We encourage you to explore the new features and benefits offered by this latest release and evaluate th

                                                        Node.js — Node.js 22 is now available!
                                                      • TypeScriptのESMでハマる - くらげになりたい。

                                                        markdownからhtmlに変換したいなーと思い、 micromarkを使おうとしたら、 ES Modulesでかなりハマったので、その時の備忘録。 はじまり 今まで使っていたらちょっとしたツールのプロジェクトに、 micromarkをインストールしたら、こんなエラーが。。 $ npx ts-node sample.ts ./node_modules/ts-node/dist/index.js:842 return old(m, filename); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module ./src/node_modules/micromark/index.js from ./src/sample.ts not supported. Instead change the require of index.js in src/s

                                                          TypeScriptのESMでハマる - くらげになりたい。
                                                        • GitHub - GrinZero/node-network-devtools: Inspecting Node.js's Network with Chrome DevTools✨

                                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                            GitHub - GrinZero/node-network-devtools: Inspecting Node.js's Network with Chrome DevTools✨
                                                          • 14 Linting Rules To Help You Write Asynchronous Code in JavaScript

                                                            Debugging asynchronous code in JavaScript can feel like navigating a minefield at times. You don't know when and where the console.logs will print out, and you have no idea how your code is executed. It's hard to correctly structure async code so it executes in the right order as you intend it to. Wouldn't it be nice if you had some guidance while writing asynchronous code, and to get a helpful me

                                                              14 Linting Rules To Help You Write Asynchronous Code in JavaScript
                                                            • AWS LambdaのNode.jsランタイムでTCP接続を使いまわそう!(AWS_NODEJS_CONNECTION_REUSE_ENABLED) | DevelopersIO

                                                              Node.js のHTTP/HTTPS エージェントはデフォルトで keepalive が無効化されているため、新しいリクエストがあるたびに新しい TCP 接続を作成します。 AWS Lambda の Node.js ランタイムを利用している場合、環境変数で AWS_NODEJS_CONNECTION_REUSE_ENABLED=1 を設定することでkeepaliveが有効になり、TCP 接続を再利用してより効率的に通信するようになります。 この動作を確認してみます。 背景 Node.js のHTTP/HTTPS エージェントはデフォルトで keepalive が無効化されています。 keepAlive Keep sockets around even when there are no outstanding requests, so they can be used for futur

                                                                AWS LambdaのNode.jsランタイムでTCP接続を使いまわそう!(AWS_NODEJS_CONNECTION_REUSE_ENABLED) | DevelopersIO
                                                              • GitHub - joshmarinacci/node-pureimage: Pure JS implementation of the HTML Canvas 2D drawing API

                                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                  GitHub - joshmarinacci/node-pureimage: Pure JS implementation of the HTML Canvas 2D drawing API
                                                                • require(esm) in Node.js

                                                                  Recently I landed experimental support for require()-ing synchronous ES modules in Node.js, a feature that has been long overdue. In the pull request, I commented with my understanding about why it did not happen sooner before this pull request in 2024. This post expands on that comment a bit more. The opinions in this post are my own and reflect my perception of the ESM development in Node.js as

                                                                  • GitHub - nodejs/typescript: TypeScript support in Node.js core

                                                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                      GitHub - nodejs/typescript: TypeScript support in Node.js core
                                                                    • Introduction

                                                                      A simple yet powerful testing framework for Node.js Japa comes with everything you need to test your backend applications. Be it writing JSON API tests using an Open API schema or writing browser tests using Playwright. Unlike other testing frameworks born out of the frontend ecosystem, Japa focuses only on testing backend applications and libraries. Therefore, Japa is simpler, faster, and bloatwa

                                                                      • ”Fastify” Node.js用Webフレームワーク - 共同開発者Matteo Collina氏へのインタビュー

                                                                        Spring BootによるAPIバックエンド構築実践ガイド 第2版 何千人もの開発者が、InfoQのミニブック「Practical Guide to Building an API Back End with Spring Boot」から、Spring Bootを使ったREST API構築の基礎を学んだ。この本では、出版時に新しくリリースされたバージョンである Spring Boot 2 を使用している。しかし、Spring Boot3が最近リリースされ、重要な変...

                                                                          ”Fastify” Node.js用Webフレームワーク - 共同開発者Matteo Collina氏へのインタビュー
                                                                        • How Much Memory Do You Need to Run 1 Million Concurrent Tasks? | Piotr Kołaczkowski

                                                                          In this blog post, I delve into the comparison of memory consumption between asynchronous and multi-threaded programming across popular languages like Rust, Go, Java, C#, Python, Node.js and Elixir. Some time ago I had to compare performance of a few computer programs designed to handle a large number of network connections. I saw huge differences in memory consumption of those programs, even exce

                                                                          • The complexity of writing an efficient NodeJS Docker image - Specfy

                                                                            Docker is an invaluable tool for managing containers, but it can be challenging to grasp its inner workings, especially for newcomers. While modern hosting platforms like Vercel and Netlify often eliminate the need for writing Dockerfiles for NodeJS processes, understanding Docker optimization becomes crucial when handling your infrastructure. By achieving optimal efficiency, you can save both tim

                                                                              The complexity of writing an efficient NodeJS Docker image - Specfy
                                                                            • GitHub - adbayb/termost: 📦 A framework to build your next CLI application: Get the most of your terminal 🚀

                                                                              #!/usr/bin/env node import { helpers, termost } from "termost"; type ProgramContext = { globalFlag: string; }; type DebugCommandContext = { localFlag: string; }; const program = termost<ProgramContext>("CLI example", { onException(error) { console.error(`Error logic ${error.message}`); }, onShutdown() { console.log("Clean-up logic"); }, }); program.option({ key: "globalFlag", name: { long: "global

                                                                                GitHub - adbayb/termost: 📦 A framework to build your next CLI application: Get the most of your terminal 🚀
                                                                              • GitHub Copilotの補完候補をNode.jsプログラムで取得する

                                                                                $ git clone https://github.com/github/copilot.vim $ echo "console.lo" > sample.ts $ node getCompletionsCycling.mjs ./sample.ts Completions: { completions: [ { uuid: '3dcce22b-5656-46a3-bbe8-d204ad1c5259', text: 'console.log("Hello World");\n', range: [Object], displayText: 'g("Hello World");\n', position: [Object], docVersion: 0 }, { uuid: '94015891-20a7-4e84-a3b7-6ce0a44b5285', text: 'console.log

                                                                                  GitHub Copilotの補完候補をNode.jsプログラムで取得する
                                                                                • 2023-09-15のJS: Bun v1.0、Node.js 16はEOL、State of CSS 2023

                                                                                  JSer.info #660 - Bun v1.0がリリースされました。 Bun 1.0 | Bun Blog Node.js互換のruntimeとコアパッケージの実装、TypeScriptのTranspiler、Bundler、npmのパッケージマネージャー、bun testでのテストツールをもつツールキットです。 Bun 1.0 is here - YouTube v1.0リリースによって、VercelがパッケージマネージャーとしてのBunをサポートしたり(Runtimeとしては未サポート)、RailsがBunのサポートを追加したりしています。 Bun install is now supported with zero configuration – Vercel Add Bun support by terracatta · Pull Request #49241 · rails/

                                                                                    2023-09-15のJS: Bun v1.0、Node.js 16はEOL、State of CSS 2023

                                                                                  新着記事