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.
IntlというのはECMAScript Internationalization APIのこと ECMA-402 として標準化 Intl - JavaScript | MDN NodeJSでも利用可能だが、ビルドオプションによって様子が変わる NodeJSのICUサポートは none, system-icu, small-icu, full-icu というオプションが用意されている https://nodejs.org/api/intl.html 公式バイナリのオプションは small-icu で、これは英語だけをサポートしている 起動時にICU dataを与える事も可能 この情報は node -e 'console.log(process.config.variables)' で調べられる Intl によってI18N処理をするときに日本語サポートをしたい場合、3つの選択肢がある full
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Pick a username Email Address Password Sign up for GitHub By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails. Already on GitHub? Sign in to your account
ウェブサイトの更新チェックをするのに、ブラウザを開くのが面倒でスクリプト化したいことがあります。 Node.jsを使って、スクリプト化します。 お題 国立大学法人 電気通信大学から最新の新着情報の日付を取得します。 ブラウザ上での動作 最初にブラウザでの情報取得方法を確認します。 開発コンソールで次のJavaScriptを実行します。 document.querySelector('.newsList').children[0].firstChild.textContent.trim() "2017年10月 5日"最新の新着情報の日付が取得できます。 解法 色々な実装方法があります。 環境 Nodo.js v8.6.0 MacBook Pro (Retina, 13-inch, Late 2013) 比較表 最初に簡単な比較を載せます。 ソースコードは後半にあります。 ヘッドレスブラウザ
buildersconでのスライド 8.3.0 プロポーザル TurboFan + Ignition TurboFan Ignition Flow V8の5.9は・・・? パフォーマンス webpack 8.2.1(V8 5.8) 8.3.0(V8 6.0) 結果 ESLint 8.2.1(V8 5.8) 8.3.0(V8 6.0) 結果 まとめ buildersconでのスライド speakerdeck.com 8.3.0 プロポーザル github.com 大きな変更はやはりV8の6.0とWHATWG Encoding Standardが入ることです🎉 今回はV8の6.0の話をします。 これはLTS対象であるNode8へのバックポートもされNodeのバージョンを9へ上げる準備ができました。 github.com github.com 今現在のcurrent(master branch
はじめに node.jsをデーモン化するにはforever、pm2、supervisorなどいろいろありますが centos7になってから標準のスタートアップスクリプトでもとくに問題がでていないので紹介します プロセスマネージャーに一般に必要とされる機能 以下の機能は標準のsystemdで満たしています ターミナルからプロセスの切り離し マシン再起動による自動起動 プロセスダウンによる自動再起動 systemdではやってくれない機能 マルチコアスケールアウト(PM2) 設定ファイルサンプル サーバー名称:sample-server 実行ユーザー:centos ディレクトリ /etc/systemd/system/ の下に サーバー名称.serviceというファイルを作ります [Unit] Description=sample server After=syslog.target netwo
Node.js v7 has arrived! This new major version of Node.js includes: V8 5.4 which brings along with 98% coverage of ES6 language features, improved reliability and performance, and a new experimental URL parser based on the WHATWG URL standard. As an odd numbered release, in accordance with our Long Term Support plan, Node.js v7 will be supported only until about June, 2017, with Node.js v8 current
80番ポートを使ってlistenしたいけど、ルートだと危ないから一般ユーザでやりたいなーと思っていたのだけど、UNIX的な知識がないのでどうやるのかしらなかったのですが、調べて知ったのでメモメモ。 環境:OS X 10.7.5 / node.js 0.8.11 Hello, Worldサーバ node.jsでよく見かける一番最初のコードをちょっと改変した感じのコードです。 #!/usr/bin/env node // index.js var http = require('http'), server = http.createServer(); server.on('request', function (req, res) { res.end('Hello, World!'); }); server.listen(80, function () { process.setuid('s
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く