<commit_before>orange
======

A development tool, automatically refresh the browser when file changed Like LiveEdit

Later any further need not call it a day to refresh your browser.

Support: WEB dev, PHP, Node.js, Python, etc...

# Usage

```shell
Usage of orange:
  -dir="./": Watch dir which change will refresh the browser, default current dir
  -ignores="": Not watch files, split width `,` Not regexp eg: `.go,.git/`, default no ignores
  -port=4000: Static server port, The port must>1024, default 4000
  -portproxy=0: Proxy http://localhost:{{port}}/ when file saved refresh browser, set 0 not proxy
  -precmd="": Before refresh browser, execute precmd command. eg: `ls {0}`, {0} is the changed file
```

eg:

```sh
cd ~/Sites/
orange -portproxy 80 -dir ~/Sites/blog/ -ignores .cache,.db
```

### Notes

1. If you don't want to monitor files, set `orange -ignores .`
2. If you want ignore some dirs, eg: `orange -ignores ".git,.svn,dirs"`
3. If you want run command when file change, set `-precmd` eg: `orange -precmd "du -sh {0}"
4. For PHP/Node.js/etc... , You can proxy your proxy, eg: proxy apache `orange -portproxy 80`
5. If not port proxy, cd your dir, run orange , view a html file when current dir files change, browser will refresh automatically
6. When start, `Open("http://localhost"+ your port)` in your Browser

# Downloads

Binaries

- [Mac OSX 10.8+](#)
- [Windows bit64](#)
- [Linux](#)

Move orange file to your `$PATH`<commit_msg>mod readme<commit_after>orange
======

A development tool, automatically refresh the browser when file changed Like LiveEdit

Later any further need not call it a day to refresh your browser.

Support: WEB dev, PHP, Node.js, Python, etc...

# Usage

```shell

Usage of orange:
  -ignores="": Not watch files, split width `,` Not regexp eg: `.go,.git/`, default no ignores
  -port=4000: Static server port, The port must>1024, default 4000
  -portproxy=0: Proxy http://localhost:{{port}}/ when file saved refresh browser, set 0 not proxy
  -precmd="": Before refresh browser, execute precmd command. eg: `ls {0}`, {0} is the changed file
  -rootdir="./": Server root dir, default current dir
  -watchdir="./": Watch dir which change will refresh the browser, default current dir

```

eg:

```sh
cd ~/Sites/
orange -portproxy 80 -dir ~/Sites/blog/ -ignores .cache,.db
```

### Notes

1. If you don't want to monitor files, set `orange -ignores .`
2. If you want ignore some dirs, eg: `orange -ignores ".git,.svn,dirs"`
3. If you want run command when file change, set `-precmd` eg: `orange -precmd "du -sh {0}"
4. For PHP/Node.js/etc... , You can proxy your proxy, eg: proxy apache `orange -portproxy 80`
5. If not port proxy, cd your dir, run orange , view a html file when current dir files change, browser will refresh automatically
6. When start, `Open("http://localhost"+ your port)` in your Browser

# Downloads

Binaries

- [Mac OSX 10.8+](#)
- [Windows bit64](#)
- [Linux](#)

Move orange file to your `$PATH`
{'fraction_non_alphanumeric': 0.13449899125756556, 'fraction_numerical': 0.02151983860121049, 'mean_word_length': 3.813915857605178, 'pattern_counts': {'":': 7, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3534642', 'n_tokens_mistral': 1007, 'n_tokens_neox': 924, 'n_words': 427}