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
SimpleModular, simple-to-understand JavaScript functions that speak GeoJSON.
IntroductionGet Started Why Eleventy?Performance LearnGlossary Opening a Terminal Installing JavaScript CommonJS vs. ESM Starter Projects TutorialsQuick Tips CommunityHow can I contribute? Code of Conduct Blog Firehose 11ty Bundle Leaderboards Eleventy Meetup 11ty Conference GuideGuideGet Started Command Line Usage Add a Configuration File Copy Files to Output Add CSS, JS, Fonts Importing Content
ava-to-jest.md AVAからJestへの移行 大枠の書き方 テストケースの定義 AVAのtest('コメント', () => {/* テスト内容 */});という書き方(xUnit形式)はJestでも可能です。AVAではimport test from 'ava';という感じでtest関数をインポートしていましたが、Jestではグローバル変数として定義されているのでインポートは不要です。test関数だけでなく、Jestが提供するAPIは全てグローバル変数で定義されているので、importせずに参照できます。 // AVA import test from 'ava'; test('テストケース名など', t => { t.true(true); }); // Jest // 全てのAPIはグローバルに定義されており、importは不要 test('テストケース名など', ()
元ネタ : 【JavaScript】ファイル名(拡張子あり)からファイル名(拡張子なし)と拡張子に分割する(正規表現) - Qiita String#match()じゃなくてString#split()でできるとなんかコードの意味的にもスッキリしそう、っていう思いつきで書いてみた。 function splitExt(filename) { return filename.split(/\.(?=[^.]+$)/); } splitExt('img.jpg'); // => [ 'img', 'jpg' ] splitExt('.html'); // => [ '', 'html' ] splitExt('lib.d.ts'); // => [ 'lib.d', 'ts' ] splitExt('abc'); // => [ 'abc' ] 元ネタはString#match()を使っている
he he (for “HTML entities”) is a robust HTML entity encoder/decoder written in JavaScript. It supports all standardized named character references as per HTML, handles ambiguous ampersands and other edge cases just like a browser would, has an extensive test suite, and — contrary to many other JavaScript solutions — he handles astral Unicode symbols just fine. An online demo is available. Installa
Shibuya.XSS techtalk #11 の発表資料です。
System: OS: macOS Mojave 10.14.5 CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz Memory: 2.97 GB / 16.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 8.16.0 - ~/.nvm/versions/node/v8.16.0/bin/node Yarn: 1.15.2 - ~/.yarn/bin/yarn npm: 6.9.0 - ~/.nvm/versions/node/v8.16.0/bin/npm pnpm: 8.7.6 - /usr/local/bin/pnpm bun: 1.0.2 - /usr/local/bin/bun Watchman: 4.9.0 - /usr/local/bin/watchman Managers:
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く