https://github.com/tiaanduplessis/dien
Simple static file server
https://github.com/tiaanduplessis/dien
server static
Last synced: 11 months ago
JSON representation
Simple static file server
- Host: GitHub
- URL: https://github.com/tiaanduplessis/dien
- Owner: tiaanduplessis
- License: mit
- Created: 2018-08-31T18:22:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T12:04:41.000Z (over 4 years ago)
- Last Synced: 2025-08-02T18:27:44.316Z (11 months ago)
- Topics: server, static
- Language: JavaScript
- Size: 280 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dien
[](https://npmjs.org/package/dien)
[](https://npmjs.org/package/dien)
[](https://github.com/RichardLitt/standard-readme)
[](https://npmjs.org/package/dien)
[](http://makeapullrequest.com)
> Simple static file server
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#License)
## Install
This project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com).
```sh
$ npm install dien
$ # OR
$ yarn add dien
```
## Usage
```js
const dien = require('dien')
const dir = '.'
const port = 7777
dien(dir, port)
```
Using the CLI:
```sh
$ dien --port=9000 --dir=dist
```
## Contribute
1. Fork it and create your feature branch: git checkout -b my-new-feature
2. Commit your changes: git commit -am 'Add some feature'
3. Push to the branch: git push origin my-new-feature
4. Submit a pull request
## License
MIT