1.0.9 • Published 2 years ago

ohtml v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

O HTML (ohtml)

Discription

Instalation

  • Type following command to install
    npm i -g ohtml
  • Or run npx command directly
    npx ohtml@latest < arguments,>

usage

  • Got to any directory that includes a html file.
  • If the directory have only one html file , Simply run " ohtml "
  • If you have multiple files, Then specify the filename. Like " ohtml <file_name.html> "
  • If the default PORT is not available, Specify the port like " ohtml index.html --port 5000 "
  • node: If you'r using editer like VScode and wanna use integrated terminal, Then follow the steps.

    • Run "npm init" to create npm project.
    • In npm json file add command to a script, For Example, In Package File:
      {
          "name": "my-package",
          "version": "1.0.0",
          "description": "",
          "main": "index.js",
          "dependencies": {}
          "devDependencies": {},
          "scripts": {
              "run-ohtml": "ohtml index.html"
          },
          "author": "-Author-name-"
      }
      In here I added a script "run-ohtml".
    • Run that script using "npm run <script-name>", In previous example \ is run-ohtml.

Argument List

  • --help optional

    ###  To Show help
    ```
        ohtml --help
    ```
  • --port optional

    To specify the PORT

    ohtml --port 3000

    default:: 4040

  • --path optional

    To specify the path to watch

    ohtml --path "E://my_app/"

    default:: '.' (current path)

  • --file optional

    To specify the file name

    ohtml --file mysite.html

    default:: <first file in the path>

Example

    ohtml index.html
    ohtml --path C://Github/myApp --file example.html --port 3000
1.0.9

2 years ago

1.0.8

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago