0.0.1 • Published 4 years ago
web-log-sync v0.0.1
Overview
Copy your log from browser to terminal.
Getting started
1. Install log-sync via npm
$ npm install web-log-sync --saveDev
2. Add client script in your html
<script src="path/to/dist/log-sync.min.js"></script>
3. Add log-sync command in you npm scripts
$ log-sync & npm run dev
You can assign the port
Port in your html
<script src="path/to/dist/log-sync.min.js?prefix=[log sync]&port=8080"></script>
Port in npm scripts
$ log-sync -p 8080 & npm run dev
notice: Port in html and npm scripts must be the same one.
You can assign the prefix in terminal output
<script src="path/to/dist/log-sync.min.js?prefix=[Lovely Cat]"></script>
License
log-sync is available under the MIT License.
0.0.1
4 years ago