推荐一下小巧,实用的node模块
- async https://github.com/caolan/async
- bluebird https://github.com/petkaantonov/bluebird
- benchmark https://github.com/bestiejs/benchmark.js
- debug https://github.com/visionmedia/debug
- depd https://github.com/dougwilson/nodejs-depd
- delegates https://github.com/tj/node-delegates
- mkdirp https://github.com/substack/node-mkdirp
- lodash https://github.com/lodash/lodash
- joi https://github.com/hapijs/joi
- require-directory https://github.com/troygoode/node-require-directory
- shelljs https://github.com/shelljs/shelljs
- https://github.com/substack/minimist or https://github.com/tj/commander.js or https://github.com/yargs/yargs
- chalk https://github.com/chalk/chalk
- request https://github.com/request/request
- vinyl-fs https://github.com/gulpjs/vinyl-fs
- handlebars https://github.com/wycats/handlebars.js
- pino https://github.com/mcollina/pino
欢迎大家一起推荐啊
有兄弟回复
- 数据库ORM:mongoose
- 参数验证的模块:express-validator
- 日志记录的模块:桑大选一个自己常用的吧
- http工具的模块:superagent
暂时想到这些
我补充推荐一些我比较喜欢的:
phpjs php.js offers community built php functions in javascript https://www.npmjs.com/package/phpjs nodemon 代码修改后自动重启 underscore、lodash JavaScript工具库 superagent、cheerio 爬虫模块
大概翻了一下github stars,可能没那么常用,但是都挺实用的
node-inspector:node调试
chaijs:断言库
mocha:测试框架
ava:测试框架,支持babel和async/await
axios:支持promise的http request
node-fetch:支持promise的http request
jsonwebtoken:jwt
nrm:NPM registry manager
canvas:绘图
robotjs:nodejs版按键精灵
faye:订阅广播消息框架,类似socket.io
core-js:ES201x标准实现
node-mkdirp:实现mkdir -p
fs-extra:fs拓展
gmail-js:Gmail API
just:lodash类似的轮子,但不需要为了使用一个函数而引用整个包
nodemailer:发送电子邮件
sequelize:Postgres, MySQL SQLite and Microsoft SQL Server ORM
timeago:时间格式化,貌似出自于本论坛用户
node-cron:定时任务
later:定时任务,貌似好久没更新了
validator:字符串验证
nodegit:git client
log4js:logger一枚
winston:logger一枚
tracer:logger一枚
metalsmith:静态网站生成器,更像是文件批处理
consolidate:模板引擎集合,支持ejs、jade等等超多模板引擎
semver:语义化版本工具库
micro:微服务框架
Joi: 参数校验 mongoose: mongodb数据库操作 async: 异步控制 sharp: 图像处理 moment: 时间操作 ioredis: redis数据库操作
用过的几个中比较出名的
- webpack
- vue
- vue-router
- vuex
- gulp
- fs-extra
- bluebird
- mongoose
- redis
- koa
- koa-swig
- pixijs
- socket.io
- eslint
- react
- redux