Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Aug 18, 2017
1 parent 3806132 commit 1373296
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# srv
# svr

<p align="center">
<br>
<img src="demo.gif" alt="srv">
<img src="demo.gif" alt="svr">
<br>
</p>

![Last version](https://img.shields.io/github/tag/Kikobeats/srv.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/Kikobeats/srv/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/srv)
[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/srv.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/srv)
[![Dependency status](https://img.shields.io/david/Kikobeats/srv.svg?style=flat-square)](https://david-dm.org/Kikobeats/srv)
[![Dev Dependencies Status](https://img.shields.io/david/dev/Kikobeats/srv.svg?style=flat-square)](https://david-dm.org/Kikobeats/srv#info=devDependencies)
[![NPM Status](https://img.shields.io/npm/dm/srv.svg?style=flat-square)](https://www.npmjs.org/package/srv)
![Last version](https://img.shields.io/github/tag/Kikobeats/svr.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/Kikobeats/svr/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/svr)
[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/svr.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/svr)
[![Dependency status](https://img.shields.io/david/Kikobeats/svr.svg?style=flat-square)](https://david-dm.org/Kikobeats/svr)
[![Dev Dependencies Status](https://img.shields.io/david/dev/Kikobeats/svr.svg?style=flat-square)](https://david-dm.org/Kikobeats/svr#info=devDependencies)
[![NPM Status](https://img.shields.io/npm/dm/svr.svg?style=flat-square)](https://www.npmjs.org/package/svr)
[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/Kikobeats)

> Hot Module replacement (HMR) capabilities for HTTP Server under development.
Expand All @@ -21,7 +21,7 @@ It's similar [micro-dev](https://github.com/zeit/micro-dev), but for HTTP server
## Install

```bash
$ npm install srv --global
$ npm install svr --global
```

## Usage
Expand Down Expand Up @@ -53,10 +53,10 @@ module.exports = (app, express) => {
}
```

Then just call `srv`:
Then just call `svr`:

```bash
$ srv
$ svr

┌───────────────────────────────────────────────────┐
│ │
Expand All @@ -68,9 +68,9 @@ $ srv
└───────────────────────────────────────────────────┘
```

Here `srv` it assuming the main file is called `index.js` and it exists in the current directory. Otherwise, you can provide the file path as first argument.
Here `svr` it assuming the main file is called `index.js` and it exists in the current directory. Otherwise, you can provide the file path as first argument.

Now whatever file modification in the current directory is listened by the `srv` automagically:
Now whatever file modification in the current directory is listened by the `svr` automagically:

```bash
┌───────────────────────────────────────────────────┐
Expand All @@ -87,7 +87,7 @@ Now whatever file modification in the current directory is listened by the `srv`

It takes in consideration your `.gitignore` files, so it only reloads the right file.

Using `srv --watch` you can add more files to be watched, but you need to reload the server in any time, just type `rs`:
Using `svr --watch` you can add more files to be watched, but you need to reload the server in any time, just type `rs`:

```bash
┌───────────────────────────────────────────────────┐
Expand Down
8 changes: 4 additions & 4 deletions bin/cli/help.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Usage
$ srv [path][options]
$ svr [path][options]

Options
-p, --port <n> Port to listen on (defaults to 3000)
Expand All @@ -13,6 +13,6 @@ Options
-h, --help Show this usage information

Examples
$ srv
$ srv index.js
$ srv src/index.js
$ svr
$ svr index.js
$ svr src/index.js
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "srv",
"description": "HTTP server with Hot Module Replace (HMR) capabilities for development",
"homepage": "https://documentup.com/Kikobeats/srv",
"name": "svr",
"description": "Hot Module Replacement for HTTP Server",
"homepage": "https://documentup.com/Kikobeats/svr",
"version": "0.0.0",
"bin": {
"srv": "bin/cli/index.js"
"svr": "bin/cli/index.js"
},
"author": {
"name": "Kiko Beats",
Expand All @@ -15,10 +15,10 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/kikobeats/srv.git"
"url": "git+https://github.com/kikobeats/svr.git"
},
"bugs": {
"url": "https://github.com/Kikobeats/srv/issues"
"url": "https://github.com/Kikobeats/svr/issues"
},
"keywords": [
"refresh",
Expand Down

0 comments on commit 1373296

Please sign in to comment.