推荐一下小巧,实用的node模块
发布于 9 年前 作者 i5ting 12606 次预览 最后一次回复是 9 年前 来自 分享
推荐一下小巧,实用的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
欢迎大家一起推荐啊
42 回复
每个模块不写上有什么作用,发个地址。。。。
能不能写上每个模块具体是干什么用的。这样方便大家学习使用
https://github.com/sail-sail/ejsExcel 还有这个, Excel 模板引擎
@1340641314 稍后写,先做个征集和备忘
@Ocean1509 稍后写,先做个征集和备忘,会有单独的专题的
大家想了解的,可以提给我,具有代表性我就把它加上
有兄弟回复
暂时想到这些
我补充推荐一些我比较喜欢的:
@CoderIvan pm2和mongoose这种应用级别更高,我想把mongoose独立成一章,pm2作为部署里的一小节。感觉这样应该能够讲的更多一些
@i5ting 之前还在编辑补充了几个,确实pm2连带一些常用的pm2插件是比较多内容
@CoderIvan 主要是涉及到部署,这是node学习里相当重要的一块
sequelize
@i5ting 要不考虑把这个帖子My Toolkit of Node.js里面内容和评论提到的加进来,也是不错的。
phpjs php.js offers community built php functions in javascript https://www.npmjs.com/package/phpjs nodemon 代码修改后自动重启 underscore、lodash JavaScript工具库 superagent、cheerio 爬虫模块
额,还少说了个 hjson 用于 json 文件加注释的类似的模块还有 json-comments
@JerryC8080 棒棒哒,非常好的参考
@winterZhao 这个和mongoose一样,会有单独一张的数据库介绍,s和m都是必须将的
像验证码这一块呢,你们会考虑用哪一个模块啊?
@enternoder 先记下,稍后看
lodash其实一点也不小巧。最新版的 zip 包我去下载下来有800+KB
mark. 要是能大概说明下每个模块的作用就更好了
@zhulinwei ccap你觉得怎么样
nodemailer应该能够上榜
赞,怎么能没有moment模块呢,桑大
表示还要自己点击打开看是做什么用的有点蛋疼,能加一点简单说明吗?
xlsx2json xlsx2json
@o6875461 稍后给
@mosaic101 必须加
@NextZeus 收到,我看看啊
现在数据库事务处理最靠谱的是哪个组件?
大概翻了一下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 -pfs-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:微服务框架处理http2的应该来一个 node-http2
@varHarrie 整理完才发现要小巧的,目测很多都落选了…
opn
来自酷炫的 CNodeMD
Joi: 参数校验 mongoose: mongodb数据库操作 async: 异步控制 sharp: 图像处理 moment: 时间操作 ioredis: redis数据库操作
@wang-weifeng 可以哈哈 自豪地采用 CNodeJS ionic
用过的几个中比较出名的
竟然没人提 co
把我的老帖子搬出来支持支持 https://cnodejs.org/topic/573b2d64fcf698421d20359d
@i5ting node-canvas 用来后台实现图片验证码。https://github.com/Automattic/node-canvas