@saber2pr/koa-fs

0.0.7 • Public • Published

@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

  1. IndexJob

  2. FsJob

  3. HTMLJob

  4. 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!

Readme

Keywords

none

Package Sidebar

Install

npm i @saber2pr/koa-fs

Weekly Downloads

0

Version

0.0.7

License

ISC

Unpacked Size

6.76 kB

Total Files

6

Last publish

Collaborators

  • saber2pr