Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bhelx/live-file
node.js application to view a file in realtime over the browser
https://github.com/bhelx/live-file
Last synced: 16 days ago
JSON representation
node.js application to view a file in realtime over the browser
- Host: GitHub
- URL: https://github.com/bhelx/live-file
- Owner: bhelx
- Archived: true
- Created: 2012-04-14T22:30:02.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-12-10T17:03:59.000Z (almost 6 years ago)
- Last Synced: 2024-09-19T12:36:26.274Z (about 2 months ago)
- Language: HTML
- Homepage:
- Size: 9.77 KB
- Stars: 9
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Live File
=========live-file is a simple utility to allow you to watch a remote file in realtime on your browser via websockets. It's not meant to be a nice finished product it's just a hacked together tool.
Features
========* Realtime streaming over webockets
* Infinite upward scroll simulates terminal application
* easy to install and run, few dependenciesInstall and Run
===============You can install live-file using npm. Be sure to use -g option:
```
npm install live-file -g
```To run, all you need to do is run the command and pass it a file:
```
live-file --file /var/log/system.log
```Point your browser at [http://localhost:8888](http://localhost:8888) to see the results.
You have a few extra options:
```
live-file --file /var/log/system.log --port 3000 --backlog 10000
```--port is the webserver port and --backlog is the number of bytes to send to the client at a time.
Browser Support
===============I have only tested this on Firefox :/
Contributors
============I borrowed some code from around github but I can't seem to find all the sources. I know this guy was involved:
[karmi](https://github.com/karmi)
Improvements
============fs#watchFile seems to be kind of slow. I imagine there are better ways to do this now. I might change this soon.