# malta-dev-srv

> Malta plugin to start a raw minimal development server

Latest version **1.1.9** (published 2025-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install malta-dev-srv
pnpm add malta-dev-srv
yarn add malta-dev-srv
bun add malta-dev-srv
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.9 |
| Published | 2025-03-08 |
| First published | 2018-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Federico Ghedina |
| Maintainers | fedeghe |
| Keywords | malta, malta plugin, malta web server, malta dev web server |

## Links

- npm: https://www.npmjs.com/package/malta-dev-srv
- Repository: https://github.com/fedeghe/malta-dev-srv
- Homepage: https://github.com/fedeghe/malta-dev-srv#readme
- npm.io page: https://npm.io/package/malta-dev-srv

## Recent versions

- 1.1.9 (latest) — 2025-03-08
- 1.1.8 — 2022-03-11
- 1.1.7 — 2020-03-08
- 1.1.6 — 2019-12-17
- 1.1.5 — 2019-07-19
- 1.1.4 — 2019-07-19
- 1.1.3 — 2019-06-23
- 1.1.2 — 2019-06-22
- 1.1.1 — 2019-05-23
- 1.1.0 — 2019-05-22
- 1.0.6 — 2018-11-08
- 1.0.5 — 2018-09-11
- 1.0.4 — 2018-07-22
- 1.0.3 — 2018-07-07
- 1.0.2 — 2018-07-07
- … 2 more at https://npm.io/package/malta-dev-srv/versions

## README

---
[![npm version](https://badge.fury.io/js/malta-dev-srv.svg)](http://badge.fury.io/js/malta-dev-srv)
[![npm downloads](https://img.shields.io/npm/dt/malta-dev-srv.svg)](https://npmjs.org/package/malta-dev-srv)
[![npm downloads](https://img.shields.io/npm/dm/malta-dev-srv.svg)](https://npmjs.org/package/malta-dev-srv)  
---  

This plugin can be started on: **.html**

**It needs to be installed globally**

`> npm i -g malta-dev-srv`  

It starts a really raw simple http server on the host and port needed, default values are the following:
- **host**: _localhost_
- **port**: _3001_
- **folder**: the one where malta is started from
- **browser**: _true_; set it to false to not open automatically the browser  




So for example if we want to start it automatically at (first) build, using _public_ as webRoot, with a specific ip on a specific port:  
```
> malta app/views/index.html public -plugins=malta-dev-srv[port:12345,host:\'192.168.2.103\',folder:\"public\"]
```
or in the .json file :
```
{
    ...,
    "app/views/index.html" : "public -plugins=malta-dev-srv[folder:\"public\"]",
    ...
}
```

From v 1.1.0 it is also possible to serve what previously was served thx to a single entry point mechanism (like for example an .htaccess file for apache).  
In that case there are two more informations that need to be given to the plugin: 
- the entry point, using the `staticEp` param
- static/free paths, using the `staticFree` param (pipe separated paths)  
for example:
```
{
    ...
    "source/index.html" :  ". -plugins=malta-dev-srv[staticEp:'index.html',staticFree:'app|media']",
    ...
}
```

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