const BMParser = require('bookmark-parser'); // Read from (NETSCAPE/Firefox) bookmark HTML file BMParser.readFromHTMLFile(htmlFilePath) .then(res => { ... }); // Read from (NETSCAPE/Firefox) bookmark HTML file and export BMParser.readFromHTMLFile(htmlFilePath, exportFilePath) .then(res => { ... }); // Read from (NETSCAPE/Firefox) bookmark HTML readStream BMParser.readFromHTMLReadStream(readStream)
Intro 長いこと議論になっていた ES Modules の Node における扱いに一応の決着が付き、.mjs という拡張子が採択された。 この拡張子の意味と、今後ブラウザと合わせて Universal JS を実装していく上での作法が見えてきたことになる。 合わせてエコシステムが対応していくことで、長年の夢だった JS のモジュール化を進めていくことができるだろう。 ES Modules 徐々に揃いつつある ES Modules(ESM) の仕様は TC39 で行われており、その仕様については主に以下のような部分になる。 import や export と行った構文 module 内はデフォルト strict mode module でスコープを閉じる module 内の this は undefined etc 逆に以下は TC39 での策定範囲外となる どう Module を読み
Hey, all cool kids have exciting Engineering Newsletters these days, so it’s high time the JavaScript Binary AST got one! JavaScript Binary AST is a joint project between Mozilla and Facebook to rethink how JavaScript source code is stored/transmitted/parsed. We expect that this project will help visibly speed up the loading of large codebases of JS applications and will have a large impact on the
introducing react-beautiful-dndDrag and drop is an intuitive way of moving and rearranging things. We at Atlassian have recently released react-beautiful-dnd which makes drag and drop for lists on the web more beautiful, natural and accessible. PhysicalityThe core design idea of react-beautiful-dnd is physicality: we want users to feel like they are moving physical objects around. This is best ill
Beyond typeof and instanceof: simplifying dynamic type checks This blog post describes a technique for making instanceof applicable to more values (on the right-hand side). Specifically, for primitive values. Background: typeof vs. instanceof # In JavaScript, you have to choose when it comes to checking the type of a value. The rough rule of thumb is: typeof checks if a value is an element of a p
JS/wasm module integration A stage-setting introduction by Domenic Denicola
こんばんはimaizumeです。 プログラミングを勉強していると、どんな言語であっても必ず覚える構文ってありますよね 中でも繰り返し(for, while, until etc)はどんな言語でも必ず出てくる基本構文だと思います。 もし繰り返しの構文がある程度使えるようになったら、次はぜひmapやfilterといった高階関数を覚えてみましょう。 この map や類似の filter, reduceといった関数は 高階関数と呼ばれ、配列の各要素に対してfor文等と同様繰り返し処理を行うためのものです ( mapは本来写像関数といい、ある配列要素を別の要素に対応付けて変換するための関数一般を表す言葉です。よってreduceやfilterなどの他の高階関数も、厳密には繰り返しと同一ではありませんが、この記事ではあくまで最初に覚えるときのニュアンスを伝えるために、繰り返しの場合と対応付けする形で説明
There's but a few commits in this release, but we've made a big change to how AVA manages its test workers 👩🏼🔬👨🏼🏭👨🏿🚀👨🏻⚕️👩🏽💼. Highlights Default concurrency We now cap the number of concurrent workers to the number of CPU cores on your machine. Previously AVA started workers for each test file, so if you had many test files this could actually bring things to a halt. 465fcec You
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く