koa-http-basic-auth::seedling:用于koa的HTTP基本身份验证中间件

时间:2024-02-24 11:36:03
【文件属性】:

文件名称:koa-http-basic-auth::seedling:用于koa的HTTP基本身份验证中间件

文件大小:29KB

文件格式:ZIP

更新时间:2024-02-24 11:36:03

nodejs http middleware koa basic-authentication

koa-http-basic-auth 安装 npm npm install --save koa-http-basic-auth 纱 yarn add koa-http-basic-auth 用法 const Koa = require ( 'koa' ) ; const basicAuth = require ( 'koa-http-basic-auth' ) ; const app = new Koa ( ) ; // Register koa-http-basic-auth middleware app . use ( basicAuth ( { user : 'username


【文件预览】:
koa-http-basic-auth-master
----.gitignore(15B)
----package.json(629B)
----.travis.yml(147B)
----LICENSE(1KB)
----index.js(985B)
----README.md(737B)
----test()
--------lib.test.js(1KB)
----yarn.lock(90KB)

网友评论