# nested-static

> 🗂️ Helps register nested folders to the extpress module.

Latest version **1.1.0** (published 2019-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install nested-static
pnpm add nested-static
yarn add nested-static
bun add nested-static
```

## 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.1.0 |
| Published | 2019-03-23 |
| First published | 2019-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | hmmhmmhm |
| Maintainers | hmmhmmhm |
| Keywords | express, static, express-static, nested, register, folder, automatic |

## Links

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

## Recent versions

- 1.1.0 (latest) — 2019-03-23
- 1.0.0 — 2019-03-23

## README

# nested-static
🗂️ Helps register nested folders to the express module.

> THIS MODULE SUPPORT **<u>TYPESCRIPT(.d.ts)</u>**

When using Express module, if you register a folder as a function such as us, Can experience it, the folder in that folder does not automatically register a url. nested-static helps you register nested folders in these situations.

## Installation

```bash
npm install nested-static --save
```

## Example

```js
const nestedStatic = require("nested-static")

nestedStatic(`${__dirname}/../static`, (folders)=>{
    for(let {staticPath, subPath} of folders){
        console.log (`Folder Registered ${staticPath} to ${subPath}`)
        app.use(subPath, express.static(staticPath))
    }
})
```

## License

MIT Licensed. (Copyleft)

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