1. 程式人生 > >一組驚豔的NodeJs包

一組驚豔的NodeJs包

A curated list of delightful Node.js packages and resources.

Inspired by the awesome list thing.

Packages

Mad science

  • webtorrent - Streaming torrent client for Node.js and the browser.
  • peerflix - Streaming torrent client.
  • dat - Real-time replication and versioning for data sets.
  • ipfs - Distributed file system that seeks to connect all computing devices with the same system of files.
  • Breach - Modular and hackable browser written in JavaScript.
  • peerwiki - All of Wikipedia on BitTorrent.
  • peercast - Stream a torrent video to Chromecast.
  • BitcoinJS - Clean, readable, proven Bitcoin library.
  • Bitcore - A pure and powerful Bitcoin library.
  • js-git - JavaScript implementation of Git.
  • NodeOS - The first operating system powered by npm.
  • PDFKit - PDF generation library.
  • turf - Modular geospatial processing and analysis engine.
  • webcat - p2p pipe across the web using WebRTC that uses your GitHub private/public key for authentication.

Command-line apps

  • pageres - Responsive website screenshots.
  • trash - A safer alternative to rm.
  • npm-name - Check whether a package name is available on npm.
  • yo - Run Yeoman generators.
  • ESLint - The pluggable linting utility for JavaScript.
  • JSCS - JavaScript Code Style checker.
  • cpy - Copy files.
  • torrent - Download torrents.
  • David - Tells you when your package npm dependencies are out of date.
  • vtop - More better top, with nice charts.
  • tmpin - Adds stdin support to any CLI app that accepts file input.
  • normit - Google Translate with speech synthesis in your terminal.
  • esformatter - JavaScript code beautifier/formatter.
  • is-up - Check whether a website is up or down.
  • is-online - Check if the internet connection is up.
  • public-ip - Get your public IP address.
  • http-server - Simple, zero-config command-line HTTP server.
  • bcat - Pipe command output to web browsers.
  • slap - Sublime-like terminal-based text editor.
  • jsinspect - Detect copy-pasted and structurally similar code.
  • pjs - Pipeable JavaScript. Quickly filter, map, and reduce from the terminal.
  • license-checker - Check licenses of your app's dependencies.
  • browser-run - Easily run code in a browser environment.
  • modhelp - Syntax-highlighted module READMEs in terminal with ANSI-friendly pager.
  • wifi-password - Get the current wifi password.
  • wallpaper - Change the desktop wallpaper.
  • dark-mode - Toggle the Dark Mode in OS X 10.10 from the command-line.

Functional programming

  • Lo-Dash - A utility library delivering consistency, customization, performance, & extras. A better and faster Underscore.js.
  • Ramda - A utility library with a focus on flexible functional composition enabled by automatic currying and reversed argument order. Avoids mutating data.
  • Mout - Utility library with the biggest difference between other existing solutions is that you can choose to load only the modules/functions that you need, no extra overhead.
  • mori - A library for using ClojureScript's persistent data structures and supporting API from the comfort of vanilla JavaScript.
  • Folktale - A suite of libraries for generic functional programming in JavaScript that allows you to write elegant, modular applications with fewer bugs, and more reuse.
  • immutable - Immutable data collections.
  • underscore-contrib - The brass buckles on Underscore's utility belt.
  • Bacon.js - Functional reactive programming.
  • RxJS - Functional reactive library for transforming, composing, and querying various kinds of data.
  • Lazy.js - Utility library similar to Lo-Dash/Underscore but with lazy evaluation, which can translate to superior performance in many cases.

HTTP

  • request - Simplified HTTP request client.
  • got - A nicer interface to the built-in http module.
  • gh-got - Convenience wrapper for got to interact with the GitHub API.
  • superagent - A small progressive HTTP request library.
  • axios - Promise based HTTP client (works in the browser too).
  • hyperquest - Streaming HTTP requests.
  • spdy - Creates SPDY servers with the same API as the built-in https module.
  • Nock - A HTTP mocking and expectations library.
  • download - Download and extract files effortlessly.
  • wreck - HTTP Client Utilities.
  • http-proxy - A full-featured HTTP proxy.

Debugging / Profiling

  • node-inspector - Debugger based on Blink Developer Tools.
  • Theseus - A new type of JavaScript debugger featuring real-time code coverage, retroactive inspection and asynchronous call tree.
  • longjohn - Long stack traces with configurable call trace length.
  • debug - Tiny debugging utility.
  • jstrace - Dynamic tracing for JavaScript, similar to dtrace, ktap etc.
  • TraceGL - Transforms your JavaScript, injecting monitoring code that produces a log of everything that happens.
  • njsTrace - Instrument and trace your code, see all function calls, arguments, return values, as well as the time spent in each function.
  • vstream - Instrumentable streams mix-ins to inspect a pipeline of streams.
  • stackman - Enhance an error stacktrace with code excerpts and other goodies.

Logging

  • winston - A multi-transport async logging library.
  • Bunyan - A simple and fast JSON logging library.
  • intel - A comprehensive logging library (handlers, filters, formatters, console injection).

Web frameworks

  • Koa - A new web framework designed by the team behind Express, which aims to be a smaller, more expressive, and more robust foundation for web applications and APIs.
  • Express - A minimal and flexible web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.
  • Hapi - A rich framework for building applications and services.
  • LoopBack - Powerful framework for creating REST APIs and easily connecting to backend data sources.
  • Meteor - An ultra-simple, database-everywhere, data-on-the-wire, pure-Javascript web framework.
  • SailsJS - An MVC web framework with a modern twist, supporting WebSockets, streams, and a data-driven API.
  • Restify - A node framework built specifically to enable you to build correct REST web services.
  • Derby - MVC framework, making it easy to write realtime, collaborative applications that run in both Node.js and browsers.
  • Interfake - Rapid prototyping framework for making mock HTTP APIs, with a Node, command-line and HTTP interface.
  • Restberry - Framework for setting up RESTful JSON APIs, applied to your database models without needing to write any code.

Command-line utilities

  • chalk - Terminal string styling done right.
  • meow - CLI app helper.
  • minimist - Parse command-line flags.
  • user-home - Get the path to the user home directory.
  • Inquirer.js - Interactive command-line prompt.
  • update-notifier - Update notifications for your CLI app.
  • sudo-block - Block users from running your app with root permissions.
  • configstore - Easily load and persist config without having to think about where and how.
  • insight - Helps you understand how your tool is being used by anonymously reporting usage metrics to Google Analytics.
  • sparkly - Generate sparklines ▁▂▃▅▂▇
  • blessed - A curses-like library.
  • cli-table - Pretty unicode tables.
  • drawille - Draw on the terminal with unicode braille characters.
  • progress - Flexible ascii progress bar.
  • log-symbols - Colored symbols for various log levels.
  • columnify - Create text-based columns suitable for console output. Supports cell wrapping.
  • googleauth - Create and load persistent Google authentication tokens for command-line apps.
  • figures - Unicode symbols with Windows CMD fallbacks.
  • cli-cursor - Toggle the CLI cursor.
  • ascii-charts - ASCII bar chart in the terminal.
  • cfonts - Sexy ASCII fonts for the console.
  • yn - Parse yes/no like values.

Package managers

  • npm - A package manager for Node.js and the web.
  • Bower - A package manager for the web.
  • Component - A package manager for building better web apps.
  • Duo - A next-generation package manager for the front-end.
  • jspm.io - Frictionless browser package management with support for ES6, CommonJS, AMD modules.

Build tools

  • gulp.js - Streaming and fast build system that favors code over config.
  • grunt - Task runner that can perform repetitive tasks like minification, compilation, unit testing, linting, etc.
  • Broccoli - A fast, reliable asset pipeline, supporting constant-time rebuilds and compact build definitions.
  • browserify - Browser-side require() the Node.js way.
  • webpack - Packs CommonJS/AMD modules for the browser.
  • Brunch - Front-end web app build tool with simple declarative config, fast incremental compilation, and an opinionated workflow.
  • strong-build - Build a node app package and prepare to deploy it as a package to production or use git to commit to a deploy branch.

Hardware

  • johnny-five - Firmata based Arduino Framework.
  • serialport - Access serial ports for reading and writing.
  • usb - USB library.
  • cylon.js - Next generation robotics framework with support for 26 different platforms.

Templating

  • handlebars.js - A superset of Mustache templates which adds powerful features like helpers and more advanced blocks.
  • hogan.js - Twitter's small, fast, phase-separated compiler for Mustache templates.
  • Jade - High performance template engine heavily influenced by Haml.
  • nunjucks - A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired).

Documentation

  • Docco - A quick-and-dirty documentation generator which produces an HTML document that displays your comments intermingled with your code.
  • JSDoc - API documentation generator similar to JavaDoc or PHPDoc.
  • dox - JavaScript documentation generator using Markdown and JSDoc.
  • jsdox - JSDoc3 to Markdown documentation generator.
  • apiDoc - Inline documentation for RESTful web APIs.

Filesystem

  • del - Delete files/folders using globs.
  • globby - Glob files with support for multiple patterns.
  • cpy - Copy files.
  • rimraf - Recursively delete files like rm -rf.
  • mkdirp - Recursively create directories like mkdir -p.
  • graceful-fs - Drop-in replacement for the fs module with various improvements.
  • fs-extra - Extra methods for the fs module.
  • fs-write-stream-atomic - Like fs.createWriteStream(), but atomic.
  • lnfs - Force create symlinks like ln -fs.
  • chokidar - Filesystem watcher which stabilizes events from fs.watch and fs.watchFile as well as using native fsevents on OS X.
  • gaze - A globbing watch module which uses custom native binaries to listen to filesystem events.
  • istextorbinary - Check if a file is text or binary.
  • filenamify - Convert a string to a valid filename.

Control flow

  • Callbacks
    • each-async - Async concurrent iterator like forEach.
    • async - Provides straight-forward, powerful functions for working with asynchronousity.
    • after-all-results - Bundle results of async functions calls into one callback with all the results.
  • Generators
    • co - The ultimate generator based flow-control goodness.
    • suspend - Generator-based control flow that plays nice with callbacks, promises, and thunks.
  • Promises
    • native-promise-only - A polyfill for native ES6 Promises.
    • Bluebird - A fully featured promise library with focus on innovative features and performance.
    • Q - A tool for making and composing asynchronous promises.
  • Streams
    • Highland.js - Manages synchronous and asynchronous code easily, using nothing more than standard JavaScript and Node-like Streams.
  • Channels
    • js-csp - Communicating sequential processes for JavaScript (like Clojurescript core.async, or Go).
  • Other
    • zone - Provides a way to group and track resources and errors across asynchronous operations.

Streams

  • through2 - Tiny wrapper around streams2 Transform to avoid explicit subclassing noise.
  • concat-stream - Concatenates a stream into strings or binary data.
  • simple-bufferstream - Turn a Buffer into a ReadableStream.
  • co-stream - co generator stream.
  • byline - Super-simple line-by-line Stream reader.
  • first-chunk-stream - Transform the first chunk in a stream.
  • duplexify - Turn a writeable and readable stream into a single streams2 duplex stream.
  • pumpify - Combine an array of streams into a single duplex stream.
  • from2 - Convenience wrapper for ReadableStream, inspired by through2.
  • from2-array - Create a from2 stream based on an array of source values.
  • peek-stream - Transform stream that lets you peek the first line before deciding how to parse it.
  • binary-split - A fast newline (or any delimiter) splitter stream.
  • multistream - Combine multiple streams into a single stream.
  • graphicsmagick-stream - Fast conversion/scaling of images using a pool of long lived graphicsmagick processes.
  • readable-stream - Mirror of Streams2 and Streams3 implementations in core.
  • s3-upload-stream - Upload a stream to an Amazon S3 bucket using multipart upload.
  • through2-concurrent - Transform object streams concurrently.
  • stream-combiner2 - Turn a pipeline into a single stream.

Real-time

  • Socket.io - Enables real-time bidirectional event-based communication.
  • SockJS - Low latency, full duplex, cross-domain channel browser-server, with WebSockets or without.
  • SocketCluster - Scalable HTTP + WebSocket engine which can run on multiple CPU cores.
  • Primus - An abstraction layer for real-time frameworks to prevent module lock-in.
  • Straw - Real-time dataflow framework.

Date

Image

  • sharp - The fastest module for resizing JPEG, PNG, WebP and TIFF images.
  • image-type - Detect the image type of a Buffer/Uint8Array.
  • gm - GraphicsMagick and ImageMagick wrapper.
  • lwip - Lightweight image processor which does not require ImageMagick.
  • pica - High quality & fast resize (lanczos3) in pure JS. Alternative to canvas drawImage(), when no pixelation allowed.
  • is-progressive - Check if a JPEG image is progressive.

Text

  • Underscore.string - Collection of string manipulation utilities.
  • he - A robust HTML entity encoder/decoder.
  • iconv-lite - Convert character encodings.
  • repeating - Repeat a string.
  • camelcase - Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar.
  • escape-string-regexp - Escape RegExp special characters.
  • indent-string - Indent each line in a string.
  • strip-indent - Strip leading whitespace from every line in a string.
  • detect-indent - Detect the indentation of code.
  • i18n-node - Simple translation module with dynamic JSON storage.
  • babelfish - i18n with very easy syntax for plurals.
  • string-length - Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes.
  • speakingurl - Generate a slug from a string with transliteration.
  • linkify-it - Link patterns detector with full unicode support.

Math

  • ndarray - Multidimensional arrays.
  • mathjs - An extensive math library.

Data validation

  • joi - Object schema description language and validator for JavaScript objects.
  • is-my-json-valid - JSON Schema validator that uses code generation to be extremely fast.

Parsing

  • css - CSS parser / stringifier.
  • marked - A markdown parser and compiler built for speed.
  • markdown-it - A very fast markdown parser with 100% CommonMark support, extensions and syntax plugins.
  • js-yaml - Very fast YAML parser.
  • URI.js - URL mutation.
  • JSONStream - Streaming JSON.parse and stringify.
  • csv-parser - Streaming CSV parser that aims to be faster than everyone else.
  • excel-stream - Streaming Excel spreadsheet to JSON parser.
  • parse5 - Fast full-featured spec compliant HTML parser.
  • htmlparser2 - Forgiving HTML/XML parser.
  • PostCSS - Framework for CSS postprocessors, to modify CSS.
  • PEG.js - Simple parser generator that produces fast parsers with excellent error reporting.
  • binary-extract - Extract a value from a buffer of JSON without parsing the whole thing.
  • x-ray - A web scraping utility to see through the <html> noise.
  • nearley - Simple, fast, powerful parsing for JavaScript.

Humanize

  • pretty-bytes - Convert bytes to a human readable string: 1337 → 1.34 kB.
  • pretty-ms - Convert milliseconds to a human readable string: 1337000000 → 15d 11h 23m 20s.
  • ms - Tiny millisecond conversion utility.
  • pretty-error - Errors with less clutter.
  • humanize - Data formatter for human readability.
  • read-art - Extract readable content from any page.

Compression

  • Archiver - Streaming interface for archive generation, supporting ZIP and TAR.
  • tar-stream - Streaming tar parser and generator. Also see tar-fs.
  • decompress - A pluggable decompression module with support for tartar.gz and zip files out of the box.
  • pako - High speed zlib port to pure js (deflate, inflate, gzip).

Network

  • get-port - Get an available port.
  • ipify - Get your public IP address.
  • getmac - Get the computer MAC address.

Static site generators

  • Metalsmith - An extremely simple, pluggable static site generator.
  • Wintersmith - Flexible, minimalistic, multi-platform static site generator.
  • Assemble - Static site generator for Node.js, Grunt.js, and Yeoman.
  • DocPad - Static site generator with dynamic abilities and huge plugin ecosystem.

相關推薦

NodeJs

A curated list of delightful Node.js packages and resources. Inspired by the awesome list thing. Packages Mad science webtorrent -

CES展又的中國發布 繪王數位產品專業手寫體驗

作為全球規模最大、影響力最為廣泛的消費技術產業盛會,國際消費類電子產品展覽會(CES展)於2017年1月5日-8日在美國拉斯維加斯盛大舉行。繪王動漫科技有限公司(Huion)攜旗下最新電磁式手寫輸入解決方案在此次國際大型展會中精彩亮相,並受到國外媒體和參觀者的一致認可和熱

nodejs學習()-package.json 依賴具體詳解

{   "name": "test",   //專案名稱(必須),由小寫英文字母、數字和下劃線,不能含空格   "version": "1.0.0",   //專案版本(必須)   "description": "This is for study gulp project

純HTML+CSS寫出顆會飄動的樹,有沒有到你呢?

本文轉載於:猿2048網站純HTML+CSS寫出一顆會飄動的樹,有沒有驚豔到你呢? 前言 使用HTML+CSS能寫出什麼驚人的

怎麽單獨為ionic2應用的某件設置兩個平臺一致的樣式

問題 and nbsp 目的 class bsp 組件 過程 ng- 今天在繼續項目的過程中,發現ionic2在顯示樣式上是根據不同的平臺采用不同的樣式,使在不同平臺上的應用保持相應的風格,於是問題來了。 ios的風格比較好看,android的風格略微不如ios的,所以想統

自定義控件時-添加多個控件到

logs pub name 添加多個 tool 是否 imp efi 類名 dmwidgetinterface.h 1 #ifndef _DM_WIDGET_INTERFACE_H_ 2 #define _DM_WIDGET_INTERFACE_H_ 3 4

jquery獲取相同標簽內沒有class的標簽

spa 沒有 func 標簽 his class log cnblogs style $("ul>li[class!=‘pre‘][class!=‘nex‘]").each(function(i){   $(this).html(i); }); jquery獲取

階段小記之七

什麽 內容 向上 應用 nbsp 窗口 壓力 代碼 可能 因為臨近期末,課業壓力還是比較繁重的。加上有幾門課程的大作業需要完成,成員們各自也有不少事項需要逐步完成,各自在專業方向上的各種任務可能都需要放一放。 先前布置的結對編程任務對我們而言可能都算

綜合示例:自動生成新聞

lap func tel style display ima one closed alt 點擊按鈕,自動生成5條新聞信息 用一組數組把5條新聞保存起來, 再運用 if 判讀和 for 循環來達到自動生成的效果 1 <!DOCTYPE HTML> 2

MSSQL分組取後每的最新條記錄

top 分享 mssql 方法 esc box nan 技術分享 -c 數據庫中二張表,用戶表和獎金記錄表,獎金記錄表中一個用戶有多條信息,有一個生效時間,現在要查詢: 獎金生效時間在三天前,每個用戶取最新一條獎金記錄,且用戶末鎖定 以前用的方法是直接寫在C#代碼中的:

【原創】淺談webview()——鴻一瞥

版本 開發 spa 占用 混合 原創 大量 功能性 內存泄漏 眾所周知,APP開發過程中經常會通過webview實現HTML5(H5)的渲染,實現H5和Native的混合開發(Hybrid Development)。Hybrid Development可以加速

定位對象find_elements

aps java har min 方法 content 包含 style 語言 1、腳本準備 1)將以下代碼保存復制到記事本中,並保存成 checkbox.html 文件。 (註意,這個頁面需要和我們的自動化腳本放在同一個目錄下,否則下面的腳本將指定 checkbox.ht

獲取時間中的最近的日期

時間 apply blog 獲取 == cti pla pre turn function getLatelyDate(arrDate) { var arrMs = arrDate.map(function(time) {

div跟隨鼠標移動,反應鼠標軌跡

cnblogs urn classname 元素 elements brush end ava dex <!DOCTYPE html> <html> <head> <title>div隨鼠標移動</title>

爬蟲——Scrapy框架案例:手機APP抓

debug domain hone targe allow topic document more ebs 以爬取鬥魚直播上的信息為例: URL地址:http://capi.douyucdn.cn/api/v1/getVerticalRoom?limit=20&of

selenium測試(Java)-- 元素操作(十

tro itl gen () utf-8 oot clas color doctype 利用下面的例子來編寫測試腳本 頁面代碼: <!DOCTYPE html> <html> <head> <meta http-equiv="c

一級和二級的列表在一起的時候。獲取一級放在輪播裏面展示。10個輪播

rest != [] root contain lis length ear onclick //輪播一級分類/* $.ajax({ headers: head, type: "GET", url: "", data: {}, dataType: "json",

js面試題知識點全解(作用域和閉)

foo true 方式 聲明 提升 function 這樣的 all 變量提升 問題: 1.說一下對變量提升的理解 2.說明this幾種不同的使用場景 3.如何理解作用域 4.實際開發中閉包的應用 知識點: js沒有塊級作用域只有函數和全局作用域,如下代碼: if(tru

匹配字符

log es2017 集合 http png logs bsp image 正則表達 在正則表達式裏面,我們使用元字符 [ 和 ] 來定義一個字符集合。[ 和 ]不匹配任何字符,他們只負責定義一個字符集合。 [0123456789]和 [0-9]等價 [^

重陽詩詞

dot style 聚會 family 雲舒 流年 col 高頻 mil 重陽詩詞一組 秋 紅 九月雲高望雁天,六盤山上感流年。 秋紅尚有三千樹,勝似春花萬朵鮮。 重陽得句(新韻) 一自中秋節序忙,緊賡囯慶又重陽。 登高默誦茱萸句,臨水低吟