タグ

2023年4月13日のブックマーク (2件)

  • Node.js — Node v18.16.0 (LTS)

    Notable changes Add initial support for single executable applications Compile a JavaScript file into a single executable application: $ echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js $ cp $(command -v node) hello # On systems other than macOS: $ npx postject hello NODE_JS_CODE hello.js \ --sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2 # On macOS: $ npx postject hello N

    Node.js — Node v18.16.0 (LTS)
    Shisama
    Shisama 2023/04/13
    JavaScriptを実行可能な単一バイナリにコンパイルするSingle Executable Applicationの機能がLTSにも入った!
  • オリジントライアルになったDocument Picture-in-Picture APIを試してみよう

    Document Picture-in-Picture API は策定中のものです。記事で紹介した内容が変わる可能性があります。 Chrome111 から Document Picture-in-Picture API がオリジントライアルで試せるようになりました。 Picture-in-Picture とは? 次の画像のように、画面の一部に別でウインドウを表示することを Picture-in-Picture といいます。 Picture-in-Picture のサンプルページ 動画を右下で流しつつ、別の WEB サイトを確認するなど、1 つの画面で 2 つのウインドウが表示できます。 Document Picture-in-Picture API とは? 今回新たにオリジントライアルに追加された Document Picture-in-Picture API とは別に Picture-

    オリジントライアルになったDocument Picture-in-Picture APIを試してみよう
    Shisama
    Shisama 2023/04/13
    なるほど。ストップウォッチはたしかにPiPになっていると良いケースはありそう。あとチャットとかにも使えそう。