@giancarl021/code-viewer

0.1.4 • Public • Published

Code-Viewer

CLI tool to view code from a local folder through a webserver.

Installation

npm install --global @giancarl021/code-viewer

Usage

The application have a single command: serve, which starts the webserver and routes the local files to the browser.

The description of this command is the following:

code-viewer serve [<path/to/expose>]
  Description: Exposes a path on the given port, default path is current working directory       
  Flags:
    -p | --port: The port to serve the application on, default PORT environment variable or 3000 
      Values: <port>
    -t | --tunnel: Create a tunnel to the internet with the localtunnel service

Supposing you want to expose the src directory in the current working directory on port 8080, you can run the following command:

code-viewer serve src --port 8080

Readme

Keywords

Package Sidebar

Install

npm i @giancarl021/code-viewer

Weekly Downloads

2

Version

0.1.4

License

MIT

Unpacked Size

1.34 MB

Total Files

33

Last publish

Collaborators

  • giancarl021