並び順

ブックマーク数

期間指定

  • から
  • まで

121 - 143 件 / 143件

新着順 人気順

Moduleの検索結果121 - 143 件 / 143件

  • ECMAScript proposal: JSON modules

    In this blog post, we examine the ECMAScript proposal “JSON modules” (by Sven Sauleau, Daniel Ehrenberg, Myles Borins, and Dan Clark). It lets us import JSON data as if it were an ECMAScript module. Why would we want to import JSON like a module?  # Various bundlers (such as webpack) have allowed us to import JSON data as if it were an ECMAScript module for a long time. JSON modules turn this into

    • Module federation

      Module FederationMicro-Frontend Architecture Make it easier to share code between javascript applications and make team collaboration more efficient

      • とほほのperl入門 - とほほのWWW入門

        とほほのperl入門 トップ > とほほのperl入門 概要編 Perlとは インストール 実行方法 引数指定 ファイル指定 自己完結型 標準入力読み込み型 基礎知識 簡単な実行例 これだけは覚えて strictモードと警告モード 関数の括弧 定数 数値 文字列 エスケープシーケンス(\) 数値と文字列 真(true)と偽(false) バイナリデータ 変数 変数宣言(my) スカラ($XXX) 配列(@XXX) ハッシュ(%XXX) 変数名に使える文字 定義済変数みと未定義変数 省略時の変数($_) 環境変数($ENV{'XXX'}) コマンド引数($ARGV) シグナル($SIG{'XXX'}) その他の特殊変数($X) 演算子 代入演算子 算術演算子 ビット演算子 数値比較演算子 文字列比較演算子 条件演算子 正規表現マッチング 文字列連結 文字列置換 繰り返し演算子 範囲演算子 フ

        • 4 Best Practices to Write Quality JavaScript Modules

          Using ES2015 modules you can chunk the application code into reusable, encapsulated, one-task focused modules. That's all good, but how do you structure modules? How many functions, classes a module should have? This post presents 4 best practices on how to organize better your JavaScript modules. 1. Prefer named exports When I started using JavaScript modules, I had used the default syntax to exp

            4 Best Practices to Write Quality JavaScript Modules
          • [AWS Lambda] Pythonで外部モジュール(Pillow)を使う - Qiita

            AWS Lambdaで外部モジュールを追加する方法を情報まとめた AWS Lambdaだと使えないライブラリ(モジュール)がありますね。追加が必要な場面がありますので外部モジュールの追加についてまとめます。 今回LambdaでS3にアップされた画像いじりたいのででPillow使おうとしました。 モジュールをzipでアップすればいいのは知っていたのでpip installでデータ取得できたらzipにしてOKでしょ! と思ってテストを実行したら [ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'PIL' とエラー。pip installだと無理なのこれ...どうするのこれ...みたいになったlambda初心者の私。 調べてみると方法が何個かあって、落とし穴

              [AWS Lambda] Pythonで外部モジュール(Pillow)を使う - Qiita
            • GitHub - tc39/proposal-import-attributes: Proposal for syntax to import ES modules with assertions

              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 - tc39/proposal-import-attributes: Proposal for syntax to import ES modules with assertions
              • GitHub - addaleax/gen-esm-wrapper: Generate ESM wrapper files for CommonJS modules

                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 - addaleax/gen-esm-wrapper: Generate ESM wrapper files for CommonJS modules
                • GitHub - uptrace/bun: SQL-first Golang ORM

                  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 - uptrace/bun: SQL-first Golang ORM
                  • slides/content/ModuleFederationWebpack5.md at master · sokra/slides

                    The motivation for Module Federation is developing one or more applications with multiple teams. Applications are split into smaller application "parts". These could be frontend components like a "Header" or "Sidebar" component, but also logical components like "Data Fetching Logic" or other business logic. Each part can be developed by a separate team. Applications or parts of them share other pa

                      slides/content/ModuleFederationWebpack5.md at master · sokra/slides
                    • ふりがな自動入力の検証

                      始めに UXの向上のため名前を入力した際にふりがなを自動で入力したいことがあると思います。調べた感じ以下の2つのライブラリが有名っぽい気がしたのでそれぞれについて検証してみました。 https://www.npmjs.com/package/vanilla-autokana https://www.npmjs.com/package/historykana サンプルはcodesandboxで書きましたので、動作を確認したい方は触ってみてください。 各ライブラリの使い方 vanilla-autokana こちらはjqueryのプラグインにあるautokanaをインスパイアして作られたもののようです。DOM要素を指定するだけで後は自動で変換されるので楽ですね。 import * as AutoKana from 'vanilla-autokana'; AutoKana.bind('#name'

                        ふりがな自動入力の検証
                      • GitHub - antfu/esbuild-node-loader: Transpile TypeScript to ESM with Node.js loader.

                        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 - antfu/esbuild-node-loader: Transpile TypeScript to ESM with Node.js loader.
                        • GitHub - mozillazg/go-httpheader: A Go library for encoding structs into Header fields.

                          package main import ( "fmt" "net/http" "github.com/mozillazg/go-httpheader" ) type Options struct { hide string ContentType string `header:"Content-Type"` Length int XArray []string `header:"X-Array"` TestHide string `header:"-"` IgnoreEmpty string `header:"X-Empty,omitempty"` IgnoreEmptyN string `header:"X-Empty-N,omitempty"` CustomHeader http.Header } func main() { opt := Options{ hide: "hide",

                            GitHub - mozillazg/go-httpheader: A Go library for encoding structs into Header fields.
                          • The ESM move · sindresorhus/meta · Discussion #15

                            At the end of April, Node.js 10 goes out of LTS, which means I can target Node.js 12 in my packages. Node.js 12 has full ESM support! Required reading: https://nodejs.org/api/esm.html I plan to migrate most of my (1K+) packages to ESM within 2021. At the start of April, I will begin with some less popular packages, just to test the waters. I will use "type": "module" in package.json and not .mjs.

                              The ESM move · sindresorhus/meta · Discussion #15
                            • Linux の挙動を変更する 4 つの方法

                              検証環境CentOS 8 で検証する。 ]# cat /etc/redhat-release CentOS Linux release 8.1.1911 (Core) ]# uname -a Linux localhost.localdomain 4.18.0-80.el8.x86_64 #1 SMP Tue Jun 4 09:19:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux カーネルコンフィグ異なるバイナリを作成するための設定。Linux は様々なハードウェアをサポートしており、また、機能もわんさかある。これらの機能をすべて実行バイナリに含めると、使ってない機能のせいでセキュリティリスクが無駄に高くなったりバイナリサイズがでかくなったり分岐処理が挟まって性能が落ちたりして都合が悪い。そこで、ソースコードレベルで機能の有効/無効を切り替えて専用のカ

                                Linux の挙動を変更する 4 つの方法
                              • PowerShellにおけるモジュールの取扱い方 - Qiita

                                当記事ではPowerShellでモジュールを取り扱う方法を解説します。 1. モジュールとは 当記事で言うモジュールとは、自作した変数・関数・クラスを様々なスクリプトで再利用できるようにする仕組み、および当該の仕組みで参照されるファイル、とでも緩やかに定義しておきます。まぁ、何となく言わんとすることは分かってもらえるかと思います。 PowerShellでモジュールを利用する方法は、いくつかありますので順を追って紹介していきます。 2. スクリプトファイルで区切る 最も単純明快な方法と言えるのは、使いまわしたい処理をスクリプトファイルに格納し、当該スクリプトファイルを呼び出すという方法です。 2-1. 取扱い方 エントリポイントなるファイルをIndex.ps1とし、モジュールとして呼び出したいファイルをModule.ps1とします。それらを以下のように配置します。一応言っておきますが、これは

                                  PowerShellにおけるモジュールの取扱い方 - Qiita
                                • Using ES modules in Node.js - LogRocket Blog

                                  LogRocket’s Galileo AI watches every session, surfacing impactful user struggle and key behavior patterns. Editor’s note: This article was updated on 3 March 2021. Introduction “Before software can be reusable, it first has to be usable.” – Ralph Johnson Modules are independent building blocks of a software program. They are basically a design pattern that implements features of modular design in

                                    Using ES modules in Node.js - LogRocket Blog
                                  • GitHub - mgechev/is-esm: 🌳 CLI tool which checks if a package is distributed in ECMAScript module format. Helps you reason if the package is tree-shakable.

                                    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 - mgechev/is-esm: 🌳 CLI tool which checks if a package is distributed in ECMAScript module format. Helps you reason if the package is tree-shakable.
                                    • GitHub - wundergraph/graphql-go-tools: GraphQL Router / API Gateway framework written in Golang, focussing on correctness, extensibility, and high-performance. Supports Federation v1 & v2, Subscriptions & more.

                                      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 - wundergraph/graphql-go-tools: GraphQL Router / API Gateway framework written in Golang, focussing on correctness, extensibility, and high-performance. Supports Federation v1 & v2, Subscriptions & more.
                                      • GitHub - Khan/genqlient: a truly type-safe Go GraphQL client

                                        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 - Khan/genqlient: a truly type-safe Go GraphQL client
                                        • Module Composition | Terraform | HashiCorp Developer

                                          In a simple Terraform configuration with only one root module, we create a flat set of resources and use Terraform's expression syntax to describe the relationships between these resources: resource "aws_vpc" "example" { cidr_block = "10.1.0.0/16" } resource "aws_subnet" "example" { vpc_id = aws_vpc.example.id availability_zone = "us-west-2b" cidr_block = cidrsubnet(aws_vpc.example.cidr_block, 4,

                                            Module Composition | Terraform | HashiCorp Developer
                                          • Design Meeting Notes, 9/22/2021 · Issue #46012 · microsoft/TypeScript

                                            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

                                              Design Meeting Notes, 9/22/2021 · Issue #46012 · microsoft/TypeScript
                                            • GitHub - tc39/proposal-source-phase-imports: Proposal to enable importing modules at the source phase

                                              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 - tc39/proposal-source-phase-imports: Proposal to enable importing modules at the source phase
                                              • MDXEditor - the Rich Text Markdown Editor React Component

                                                Markdown editing can be even more delightful.MDXEditor is an open-source React component that allows users to author markdown documents naturally. Just like in Google docs or Notion.

                                                新着記事