我爱编程

Node

2018-04-03  本文已影响0人  _F_F_

环境

官网英文
官网中文

淘宝前后端分离实践
百度静态资源库

node repl开发

node sublime开发

npm包管理器

官网

npm list 列出所有已经安装的模块
npm install mysql 安装mysql模块
npm uninstall mysql 卸载mysql模块
npm root 显示本地node_modules目录位置,参数-g,显示全局node_modules位置。
npm update mysql 升级mysql模块

Node常用库

request

官网

Request is designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default.

fs-readfile-promise

官网

Promisified version of [fs.readFile].

node-fetch

官网

A light-weight module that brings window.fetch to Node.js.

thunkify

官网

Turn a regular node function into one which returns a thunk, useful for generator-based flow control such as co.

superagent

官网

Ajax with less suck - (and node.js HTTP client to match)

上一篇 下一篇

猜你喜欢

热点阅读