Node中主流模塊彙總css
Drivers PostgreSQL - PostgreSQL client. Pure JavaScript and native libpq bindings. Redis - Redis client. LevelUP - LevelDB. MySQL - MySQL client. nano - CouchDB client. Aerospike - Aerospike client. Couchbase - Couchbase client. MongoDB - MongoDB driver. ODM / ORM Sequelize - Multi-dialect ORM. Supports PostgreSQL, SQLite, MySQL. Bookshelf - ORM for PostgreSQL, MySQL and SQLite3 in the style of Backbone.js. Massive - PostgreSQL data access tool. Mongoose - Elegant MongoDB object modeling. Waterline - Datastore-agnostic tool that dramatically simplifies interaction with one or more databases. Iridium - MongoDB ORM with support for promises, distributed caching, preprocessing, validation and plugins. OpenRecord - ORM for PostgreSQL, MySQL, SQLite3 and RESTful datastores. Similar to ActiveRecord. orm2 - ORM for PostgreSQL, MariaDB, MySQL, Amazon Redshift, SQLite, MongoDB. firenze - Adapter-based ORM for MySQL, Memory, Redis, localStorage and more. pg-promise - PostgreSQL framework for native SQL using promises. Objection.js - Lightweight ORM built on the SQL query builder Knex. Query builder Knex - Query builder for PostgreSQL, MySQL and SQLite3, designed to be flexible, portable, and fun to use. Other NeDB - Embedded persistent database written in JavaScript. Lowdb - Small JavaScript database powered by Lodash.
Nodemailer - The fastest way to handle email. emailjs - Send text/HTML emails with attachments to any SMTP server.node
yunpian-sdklinux
npoiios
AVA - Futuristic test runner. Mocha - Feature-rich test framework making asynchronous testing simple and fun. nyc - Code coverage tool built on istanbul that works with subprocesses. tap - TAP test framework. tape - TAP-producing test harness. power-assert - Provides descriptive assertion messages through the standard assert interface. Mochify - TDD with Browserify, Mocha, PhantomJS and WebDriver. trevor - Run tests against multiple versions of Node.js without switching versions manually or pushing to Travis CI. loadtest - Run load tests for your web application, with an API for automation. Sinon.JS - Test spies, stubs and mocks. navit - PhantomJS / SlimerJS wrapper to simplify browser test scripting. nock - HTTP mocking and expectations. intern - Code testing stack. toxy - Hackable HTTP proxy to simulate failure scenarios and network conditions. hook-std - Hook and modify stdout/stderr. testen - Run tests for multiple versions of Node.js locally with NVM. Nightwatch - Automated UI testing framework based on Selenium WebDriver. WebdriverIO - Automated testing based on the WebDriver protocol. Jest - Painless JavaScript testing. TestCafe - Automated browser testing.git
node-schedulegithub
body-parse formableweb
PM2 - Advanced Process Manager. nodemon - Monitor for changes in your app and automatically restart the server. node-mac - Run scripts as a native Mac daemon and log to the console app. node-linux - Run scripts as native system service and log to syslog. node-windows - Run scripts as a native Windows service and log to the Event viewer. forever - Ensures that a given script runs continuously. supervisor - Restart scripts when they crash or restart when a *.js file changes. Phusion Passenger - Friendly process manager that integrates directly into Nginx. naught - Process manager with zero downtime deployment.redis
glob uuid xml2json async(流程控制) axios fs-extramongodb
amqp bearcat(IoC,AOP)數據庫
var fs = require('fs'); var Spritesmith = require('spritesmith'); Spritesmith.run({ src: [ __dirname + '/fork.png', __dirname + '/github.png', __dirname + '/twitter.png' ], engine: require('canvassmith') }, function handleResult (err, result) { if (err) { throw err; } fs.writeFileSync(__dirname + '/canvassmith.png', result.image); result.coordinates, result.properties; });
var color = tinycolor("red"); color.getFormat(); // "name" color = tinycolor({r:255, g:255, b:255}); color.getFormat(); // "rgb"
var PDF = require('pdfkit'); var fs = require('fs'); var text = 'ANY_TEXT_YOU_WANT_TO_WRITE_IN_PDF_DOC'; doc = new PDF(); doc.pipe(fs.createWriteStream('PATH_TO_PDF_FILE')); doc.text(text, 100, 100); doc.end();
var marked = require('marked'); console.log(marked('I am using __markdown__.')); // Outputs: <p>I am using <strong>markdown</strong>.</p>