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.
2017年 9月2日 01時20分 6年前 Webスクレイピングをする時に便利な node.js用ライブラリ「article-parser」の紹介です。 " Webスクレイピング "、簡単に言えば、Webサイトからコンテンツの情報を抜き出すことです。RSSなどのフィードとは違いページ全体を抜き取ります。あまり聞こえはよくありませんが、Webサイトを巡回する クローラー や ソーシャルブックマーク のような機能を実装するなら必要になります。 ページ全体を抜き出すだけなら、難しいことではありません。ですが、ページをまるごと抜き出すと ヘッダーやフッター、サイドバーなどの HTMLタグを除去が必要になるので、コンテンツのみを抜き出すのに少々手間がかかります。
by Phong Huynh Why End-to-End Testing is Important for Your TeamHow our team implemented end to end testing in 4 easy stepsAt Hubba, our business needs are always evolving and the speed of development needs to catch up with it. One of the ways to keep the team moving forward without breaking everything is End-to-end (E2E) testing. Having a full test suite with E2E tests allows us to move quickly.
この記事は「WACUL Advent Calendar 2017」の5日目です。 WACULでフロントエンドエンジニアをしている@bokuwebと申します。 表題の通りですがRustとWebAssemblyを使用してpngデコードを行うnode_moduleを作ってみました。 モチベーション あるmoduleで使用しているpngjsによるデコード処理が時間を食っておりwasmで高速化できないかの調査 wasm32-unknown-unknownを使ってnode_moduleを作るとこまで体験しときたい リポジトリ RustとWebAssembly これまではwasm32-unknown-emscriptenを指定して、emscriptenを介してwasmを出力する必要があったんですが、先日のリリースにおいて1.24.0-nightlyでwasm32-unknown-unknownというta
import puppeteer from 'puppeteer'; (async () => { // Launch the browser and open a new blank page const browser = await puppeteer.launch(); const page = await browser.newPage(); // Navigate the page to a URL await page.goto('https://developer.chrome.com/'); // Set screen size await page.setViewport({width: 1080, height: 1024}); // Type into search box await page.type('.devsite-search-field', 'auto
Node.js のコアに util.promisify が追加された。 github.com 今回は util.promisify が持つ役割を中心に Node.js における Promise の立場についても話していけるといいと思う。 util.promisify とは 読んで字のごとく関数を Promise に変換してくれるユーティリティメソッド。 下記のような要領で変換できる。 const util = require('util'); const fs = require('fs'); const stat = util.promisify(fs.stat); stat('.').then((stats) => { console.log(stats); }).catch((error) => { console.error(error); }); async-awaitを使いたい
Support for Node.js debuggability landed in Node.js in 2016. Here’s how to get up and running. (Post updated Jan 2018) 1. Download and install the current version of node. (v6.3.0+ required) 2. Run node with the --inspect-brk flag: # Break on the first statement of the script▸ node --inspect-brk index.jsNext, you used to open the big chrome-devtools:// URL it spits out, but don’t. Now there’s a be
ndenv / nodenv で Node.js をインストールする際、同時に Yarn もインストールする方法JavaScriptNode.js TL; DR ndenv / nodenv を使うと任意の Node をインストールできる プラグインを使うと、ndenv install と同時に Yarn のインストールできて便利 ndenv-yarn-install nodenv-yarn-install Yarn とは ? npm に比べて速い Node 向けのパッケージマネージャーです。 Yarnファーストインプレッション ndenv / nodenv とは ? nvm や nodebrew などと同じ、複数バージョンの Node を容易に管理する為のツールです。 node.js のバージョン管理ツール ndenv を試した Ruby・Nodeを使うなら、rbenv・ndenvが便利
A proposed “spec mode” for Babel makes transpiled ES modules more spec-compliant. That’s a crucial step in preparing for native ES modules. You’ll also learn how ES modules and CommonJS modules will interoperate on Node.js and how far along ES module support is on browsers and Node.js. Update 2017-05-08: follow-up blog post: Module specifiers: differences between CJS and ESM Transpiling ES modules
Join 150K+ monthly readers. In-depth articles on Node.js, Microservices, Kubernetes and DevOps. What is CQRS? CQRS is an architectural pattern, where the acronym stands for Command Query Responsibility Segregation. We can talk about CQRS when the data read operations are separated from the data write operations, and they happen on a different interface. In most of the CQRS systems, read and write
Nodeのアドベントカレンダー、既に終わった枠が空いていて、この際書きたいネタがあったんで参加しました。宜しくお願いします。 アドベントカレンダーの時期だけ出没する弱い日曜Haskellerです。普段の実務ではNode.jsにお世話になってます。宜しくお願いします。 さて、みなさんStream API使ってますか?Node.jsといったら非同期ですよね、やっぱり。しかしながら、JavaScriptでも他の言語でも、非同期処理自体は注目されているものの、まだexperimentalという感じで様々なAPIが考案されては消えていき、また元々そういう文化が根強くなかったところから来た人たちにとって、こういう文化はちょっと立ち入りづらいところもあるかもしれませんね。 今日は、主にそういう人たちに向けて、まず非同期の色々なAPIの紹介、そしてその中でのストリームのメリット、そして実際のStream
I’ve recently been working on a lot of Node.js projects, for myself, with my students, and for national organizations. Because I’m a University instructor I’ve been getting a lot of questions about what the best practices for Node.js are from every project I’m involved with. I’ve worked with Node.js for years and know all the best practices myself, but I had never seen a list that explained the be
I gave this talk at EmpireNode in 2016.
NOTE: DRAFT status does not mean ES6 modules will be implemented in node core. Instead that this is the standard, should node core decide to implement ES6 modules. At which time this draft would be moved to ACCEPTED . The intent of this standard is to: implement interoperability for ES modules and node's existing module system create a Registry Object (see WHATWG section below) compatible with the
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く