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
在终端上截断文字,支持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
近年、Node.jsを利用する機会は飛躍的に増えています。クライアントサイドのビルドモジュールやAWS Lambda, WebSocketを使ったリアルタイムウェブアプリケーション、軽量エンジンであることを活かしたIoTでの利用等、適用範囲が増えています。また昨今のECMAScript 6が仕様化されたこと、Node.jsとio.jsの分裂と統合等のドラマを経てより一層の注目が期待されます。 このたびNode.js日本ユーザグループは、上述した流れを受けて5回目の「東京Node学園祭」を開催します。 ゲストスピーカーにはECMAScriptの仕様化、Promiseを仕様にしたことでも有名なDomenic Denicola、io.jsのリリースオーサーであり、NANというネイティブモジュール作成用のライブラリを開発しているRod Vagg、NodeUpのオーガナイザーであり、企業向けのNod
Usage var resolve = require("try-resolve"); resolve(filename, [require]) filename is a filename to be resolved. require is an optional instance of the require function from any file. Returns null if the file can't be required, otherwise it returns an absolute filename string. Example if (require("try-resolve")("/home/sebastian/file")) { // this file can be required } else { // it can't }
Note, if any of the requirements below are missing, textract will run and extract all files for types it is capable. Not having these items installed does not prevent you from using textract, it just prevents you from extracting those specific files. PDF extraction requires pdftotext be installed, link DOC extraction requires antiword be installed, link, unless on OSX in which case textutil (insta
Not actively maintained, may not work with latest node.js runtimes. If you are interested in maintaining toxy, please open an issue. Hackable HTTP proxy to simulate server failure scenarios, systems resiliency testing and unexpected network conditions, built for node.js. It was mainly designed for failure resistance testing, when toxy becomes particularly useful in order to cover fault tolerance a
Sindre Sorhus is the author of over 600 modules on npm. He recently wrote a long GitHub comment about why we should use small modules, and I asked for permission to reproduce the text on DailyJS. Read on to learn about why small modules make programming easier, and why it's not really about lines of code. People get way too easily caught up in the LOC (Lines Of Code) argument. LOC is pretty much
the open realtime servera fast and secure data-sync realtime server for mobile, web & iotget started Why deepstream?deepstream allows clients and backend-services to sync data, send events and more with a heavy focus on security. Configure everything server side without writing a line of code while still connecting to your favorite cache, database, message bus and more. records realtime document s
The io.js project has grown up incredibly fast, invigorating the Node ecosystem. In its short existence, io.js has brought a host of bug fixes, performance enhancements, and new features. If you haven’t kept up with the activity, don’t fear. This article aims to summarize the highlights to get you up to speed. We will tackle features introduced from oldest to newest with examples and relevant docu
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く