Skip to content

bXom/source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

代码资源整理

node.js

  1. 工具类库

  2. http相关

  3. cheerio

    专为服务器设计的快速、灵活和精益,实现核心jQuery。

    Fast, flexible & lean implementation of core jQuery designed specifically for the server.

    GitHub:https://github.com/cheeriojs/cheerio

    npm install cheerio
  4. async

    是一个流程控制工具包,提供了直接而强大的异步功能。基于Javascript为Node.js设计,同时也可以直接在浏览器中使用。

    Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript.

    GitHub:https://github.com/caolan/async

    npm install async
  5. EventProxy

    一个很轻量的工具,但是能够带来一种事件式编程的思维变化。有几个特点:

    • 利用事件机制解耦复杂业务逻辑
    • 移除被广为诟病的深度callback嵌套问题
    • 将串行等待变成并行等待,提升多异步协作场景下的执行效率
    • 友好的Error handling
    • 无平台依赖,适合前后端,能用于浏览器和Node.js
    • 兼容CMD,AMD以及CommonJS模块环境

    GitHub:https://github.com/JacksonTian/eventproxy

    npm install eventproxy
  6. nodemon

    用来监视node.js应用程序中的任何更改并自动重启服务,非常适合用在开发环境中。

    nodemon is a tool that helps develop node.js based applications by automatically restarting the node application when file changes in the directory are detected.

    GitHub:https://github.com/remy/nodemon

    npm install nodemon
  7. mongoose

    设计用于异步环境的MongoDB模型工具。

    Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.

    GitHub:https://github.com/Automattic/mongoose

    npm install nodemon
  8. uuid

    uuid生成工具。

    Generate RFC-compliant UUIDs in JavaScript.

    GitHub:https://github.com/kelektiv/node-uuid

    npm install uuid
  9. koa-router

    koa的路由中间件。

    Router middleware for koa.

    GitHub:https://github.com/alexmingoia/koa-router

    npm install koa-router
  10. cross-env

    跨平台的在运行脚本时添加环境变量

    Run scripts that set and use environment variables across platforms.

    npm:https://www.npmjs.com/package/cross-env

    GitHub:https://github.com/kentcdodds/cross-env

  11. config

    根据环境变量自动匹配对应的配置文件,支持.js, .ts, .yml, .yaml, .xml, .coffee, .cson, .properties, .json, .json5, .hjson

    Node-config organizes hierarchical configurations for your app deployments.

    npm:https://www.npmjs.com/package/config

    GitHub:https://github.com/lorenwest/node-config

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published