@saber2pr/koa-fs
v0.0.7
Published
> fs jobs for @saber2pr/koa.
Downloads
3
Readme
@saber2pr/koa-fs
fs jobs for @saber2pr/koa.
# from npm
npm install @saber2pr/koa-fs
# from github
git clone https://github.com/Saber2pr/koa-fs.git
API
IndexJob
FsJob
HTMLJob
Redirect
重定向
export const IndexJob: Job = Redirect({
'/': '/index.html',
'/index': '/index.html',
'/index.htm': '/index.html'
})
Koa()
.use(HTMLJob)
.listen(4003, () => console.log('http://localhost:4003'))
start
npm install
npm start
npm test
Author: saber2pr
develope and test
you should write ts in /src
you should make test in /src/test
export your core in /src/index.ts!