我们常用的 Node.js 方法和模块整理
- Packages
- Command-line apps
- HTTP
- Debugging / Profiling
- Logging
- Command-line utilities
- Build tools
- Hardware
- Templating
- Web frameworks
- Documentation
- Filesystem
- Control flow
- Streams
- Real-time
- Image
- Text
- Number
- Math
- Date
- URL
- Data validation
- Parsing
- Humanize
- Compression
- Network
- Database
- Testing
- Security
- Benchmarking
- Minifiers
- Authentication
- Job queues
- Node.js management
- Polyfills
- Natural language processing
- Process management
- Automation
- AST
- Static site generators
- Content management systems
- Forum
- Blogging
- Weird
- Miscellaneous
- Resources
- Babel - Use next generation JavaScript, today.
- ESLint - The pluggable linting utility for JavaScript.
- JSCS - JavaScript Code Style checker.
- Standard - JavaScript Standard Style — One style to rule them all.
- http-server - Simple, zero-config command-line HTTP server.
- request - Simplified HTTP request client.
- node-inspector - Debugger based on Blink Developer Tools.
- log4js-node - The Logging Framework for JavaScript.
- gulp - Streaming and fast build system that favors code over config.
- browserify - Browser-side require() the Node.js way.
- webpack - Packs modules and assets for the browser.
- EJS - Simple unopinionated templating language.
- 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.
- koa-json - JSON pretty-printed response middleware. Also converts node object streams to binary.
- koa-router - Router middleware for koa
- koa-views - Template rendering middleware for koa
- koa-generic-session - koa generic session store by memory, redis or others
- koa-redis - Generic session middleware for koa, easy use with custom stores such as redis or mongo, supports defer session getter. different from koa-session(it is cookie session).
- koa-onerror - an error handler for koa, hack ctx.onerror.
- koa-compress - Compress middleware for Koa
- koa-static - Koa static file serving middleware, wrapper for koa-send.
- koa-bodyparser - A body parser for koa, base on co-body. support json, form and text type body.
- Express - A minimal and flexible web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.
- ThinkJS - Framework with ES2015+ support, WebSockets, REST API.
- i18n-node - Simple translation module with dynamic JSON storage.
- mathjs - An extensive math library.
- Moment.js - Parse, validate, manipulate, and display dates.
- xml2js - XML to JavaScript object converter.
- Drivers
- ODM / ORM
- UglifyJS2 - JavaScript minifier.
- clean-css - CSS minifier.
- minimize - HTML minifier.
- imagemin - Image minifier.
- Nodemailer - The fastest way to handle email.