Rill is the answer to a simple question; Can I run my Express style router in the browser? Turns out you can and it works awesome. It brings a common interface to many typical app like features in both the browser and nodejs. Many isomorphic frameworks and routers have crazy abstractions and learning curves but with Rill, if you understand Express or Koa, you already know how the routing works! In
Testing is very important for finding bugs, verifying the functionality and improving the general stability of a piece of software. Almost all (if not all) developers test their code in some way. One way to test would be to manually run the program and try out all the functions to see if everything is working as expected. Another (and better) way is to write automated tests that are run every time
在终端上截断文字,支持East Asian Width(包括了中文)、Combining Marks、以及 Surrogate Pairs 背景:在 JS 中,一个中文的长度是 2,即 '中'.length === 2,在命令行上,它应该占两列;所以,如果对中文进行 wrap 时很容易出错。 老外写的很多命令行上的组件对中文都不友好,导致输出的格式比较乱,比如使用 [yargs](https://github.com/bcoe/yargs) 并开启 wrap 模式时,输出的 help 文档很难看; 另外,不仅仅中文的长度是 2 比较特殊,还有很多字符的长度是 0,甚至还有些字符是根据环境的不同而变化长度。 此工具尽量帮你处理不同长度的字符,把它转化成命令行上的列数,方便进行手动截断处理 依赖于我写的另一个工具 tty-text 。 已知问题: border 中的 single 和 dobu
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く