# super-quick-static

> serves static files... and css from sass, html from pug

Latest version **1.0.5** (published 2020-05-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install super-quick-static
pnpm add super-quick-static
yarn add super-quick-static
bun add super-quick-static
```

Provides the command `super-quick-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.0.5 |
| Published | 2020-05-05 |
| First published | 2017-10-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 7 |
| Unpacked size | 1.7 MB |
| Known vulnerabilities | 0 (+8 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Joseph Merdrignac |
| Maintainers | jniac |
| Keywords | http, serve, static, pug, sass, quick, development |

## Links

- npm: https://www.npmjs.com/package/super-quick-static
- Repository: https://github.com/jniac/super-quick-static
- Homepage: https://github.com/jniac/super-quick-static#readme
- Issues: https://github.com/jniac/super-quick-static/issues
- npm.io page: https://npm.io/package/super-quick-static

## Dependencies (7)

- [ip](https://npm.io/package/ip.md) ^1.1.5
- [pug](https://npm.io/package/pug.md) ^2.0.4
- [sass](https://npm.io/package/sass.md) ^1.26.5
- [colors](https://npm.io/package/colors.md) ^1.4.0
- [express](https://npm.io/package/express.md) ^4.17.1
- [body-parser](https://npm.io/package/body-parser.md) ^1.19.0
- [markdown-it](https://npm.io/package/markdown-it.md) ^10.0.0

## Recent versions

- 1.0.5 (latest) — 2020-05-05
- 1.0.4 — 2019-12-02
- 1.0.3 — 2019-12-02
- 1.0.2 — 2019-12-02
- 1.0.1 — 2018-11-08
- 1.0.0 — 2018-05-24
- 0.0.17 — 2018-05-24
- 0.0.16 — 2018-05-14
- 0.0.15 — 2018-05-14
- 0.0.14 — 2018-05-14
- 0.0.13 — 2018-05-14
- 0.0.12 — 2018-05-07
- 0.0.11 — 2018-05-07
- 0.0.10 — 2017-12-14
- 0.0.9 — 2017-12-14
- … 9 more at https://npm.io/package/super-quick-static/versions

## README

# super-quick-static
**[express](https://www.npmjs.com/package/express) + [pug](https://www.npmjs.com/package/pug) + [sass](https://www.npmjs.com/package/sass)**  
serves static files... and `css` from `sass`, `html` from `pug`

extends [quick-static](https://github.com/jniac/quick-static) ([@npm](https://www.npmjs.com/package/quick-static)) concept to allow some source/template files (sass, pug) to be served as regular files  

iconic fonts from [iconmonstr](https://iconmonstr.com/iconicfont/)  
[Roboto Mono](https://fonts.google.com/specimen/Roboto+Mono) for browse pages (`src/index.pug`)


### install
	$ npm i -g super-quick-static

### usage
```shell
$ super-quick-static [path='.'] [port='8000'] [auto=true]
```
```shell
$ super-quick-static
# serve the current directory through http://localhost:8000

$ super-quick-static ./public 12345
# serve the folder 'public' from the current directory on http://localhost:12345

$ super-quick-static /an/absolute/path 6666
# serve a absolute folder on http://localhost:6666

$ super-quick-static . 4000
# serve current directory on http://localhost:4000
# if the port 4000 is not available,
# will search for the next available port (4001, 4002, ...)
```

# but more importantly...

### auto-conversion

- **sass**: `any/style.sass > any/style.css`
- **pug**: `any/template.pug > any/template.html`
- **md**: `any/note.md > any/note.html` (github flavoured style)


### reset css
A reset css file is also available @ `localhost:${port}/reset.css`.  
See src/reset.css to get the source, it's a mix of the famous Meyer's reset.css and [Paul Irish Box-Sizing recommandation](https://www.paulirish.com/2012/box-sizing-border-box-ftw/) (source `src/reset.css`).

# screenshots:

<img src="https://raw.githubusercontent.com/jniac/super-quick-static/master/src/images/terminal-screen-1.png" width="65%"/>
<img src="https://raw.githubusercontent.com/jniac/super-quick-static/master/src/images/chrome-screen-1.png" width="65%"/>

[NPM link](https://www.npmjs.com/package/super-quick-static)

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