# browsefile

> 功能说明：浏览并查看目录下文件 上传到npm 测试 设计思路：1、服务端渲染

Latest version **1.0.0** (published 2018-08-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install browsefile
pnpm add browsefile
yarn add browsefile
bun add browsefile
```

Provides the command `browseFiles`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-08-27 |
| First published | 2018-08-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 21.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zdtdcq |

## Links

- npm: https://www.npmjs.com/package/browsefile
- npm.io page: https://npm.io/package/browsefile

## Recent versions

- 1.0.0 (latest) — 2018-08-27

## README

###BrowseFiles
   功能说明：浏览并查看目录下文件
             上传到npm
             测试
   设计思路：1、服务端渲染

###功能实现步骤如下：
    1、开启服务
    2、服务端响应处理
###服务端响应处理
    1、获取文件路径
    2、遍历文件路径下文件和文件夹
    3、文件处理
            1)判断文件类型,选择相符的文件类型;
            2)压缩文件数据
            3)200 响应的成功请求处理
            4)304 响应的缓存处理
     4、文件夹处理
            1)返回html文件
            2)jade处理html
            3)

注意：
    1、文件遍历是IO线程操作，需要异步处理
            选择方案是：async+await
    2、异常处理
            选择try catch
    3、使用etag监控文件资源时,全局安装不能私有，必须使用引用第三方包的形式

---
_Source: https://npm.io/package/browsefile · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
