# folder-to-html

> Generate static HTML overview of folder.

Latest version **0.1.6** (published 2018-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install folder-to-html
pnpm add folder-to-html
yarn add folder-to-html
bun add folder-to-html
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2018-10-18 |
| First published | 2018-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 169.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alexander Saburov |
| Maintainers | artmizu |
| Keywords | folder, HTML |

## Links

- npm: https://www.npmjs.com/package/folder-to-html
- Homepage: https://github.com/artmizu/folder-to-html
- Issues: https://github.com/artmizu/folder-to-html/issues
- npm.io page: https://npm.io/package/folder-to-html

## Dependencies (4)

- [less](https://npm.io/package/less.md) ^3.5.2
- [twig](https://npm.io/package/twig.md) ^1.12.0
- [nodemon](https://npm.io/package/nodemon.md) ^1.17.5
- [directory-tree](https://npm.io/package/directory-tree.md) ^2.1.0

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2018-10-18
- 0.1.5 — 2018-08-05
- 0.1.4 — 2018-08-02
- 0.1.3 — 2018-08-02
- 0.1.2 — 2018-07-10
- 0.1.1 — 2018-07-10
- 0.1.0 — 2018-07-10

## README

# Generate static HTML overview of folder
Allows you to create a static HTML page from a folder.

Folder:

![alt text](https://raw.githubusercontent.com/artmizu/folder-to-html/master/readme/input.png)


Output HTML:

![alt text](https://raw.githubusercontent.com/artmizu/folder-to-html/master/readme/output.png)

If you send along with other files to a remote server and then open folder overview through a browser, you can see which files are on the server. I use it with [Surge](http://surge.sh/).

### [Demo](http://05.dev.artmizu.ru)

## You can use script in Gulp task
```javascript
directoryOverview = require('folder-to-html');

gulp.task('overview', function() {
  directoryOverview({
    exclude: [
      /\.git/,
      /node_modules/
    ]
  });
});
```

## Options
You can pass options to function:
```javascript
directoryOverview({ opts });
```

### Available
* __folder__ (String) path to folder. Default value is _./_;
* __extensions__ (RegExp|RegExp[]) A RegExp or an array of RegExp to test for exlusion of directories;
* __exclude__ (RegExp) A RegExp to test for exclusion of files with the matching extension;
* __fileName__ (String) output HTML file name;

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