您现在的位置:首页 >> 前端 >> 内容

9.依赖库:statuses

时间:2017/2/17 9:23:56 点击:

  核心提示:前言安装npm install statuses依赖var status = require(statuses)用法var code = status(Integer || String)If Int...

前言

安装

npm install statuses

依赖

var status = require('statuses')

用法

var code = status(Integer || String)

If Integer or String is a valid HTTP code or status message, then the appropriate code will be returned. Otherwise, an error will be thrown.

作者:网络 来源:lxlhu的专栏