New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

reload-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reload-wrapper

thin wrapper for reload

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

reload-wrapper

thin wrapper for alallier/reload to launch static web server with live reload from command line

$ cat package.json
{
  "scripts": {
    "reload": "reload-wrapper -d ./public -w ./public/dist"
  }
}

$ npm run reload
Table of Contents

Requirements

  • alallier/reload: ^2.3.1

Usage

Install

$ npm install reload-wrapper

Web page setting

You need include /reload/reload.js to your html. (reload-wrapper not append your html)

<script src="/reload/reload.js"></script>

or

var reload = document.createElement("script");
reload.src = "/reload/reload.js";
document.body.appendChild(reload);

Command Line

Usage: reload-wrapper [options]

Options:

  -V, --version                    output the version number
  -d, --dir [dir]                  The directory to serve up. Defaults to current dir. (default: /apps/getto/elm/tools)
  -w, --watch-dir [watch-dir]      The directory to watch. Defaults the serving directory.
  -e, --exts [extensions]          Extensions separated by commas or pipes. Defaults to html,js,css. (default: html|js|css)
  -p, --port [port]                The port to bind to. Can be set with PORT env variable as well. Defaults to 8080 (default: 8080)
  -v, --verbose [verbose]          Turning on logging on the server and client side. Defaults to false (default: false)
      --reload-js [reload-js]      The script to reload browser when contents changed. Defaults to /reload/reload.js (default: /reload/reload.js)
      --header-file [header-file]  Optional http headers for serving contents. Defaults to headers.json (default: headers.json)
  -h, --help                       output usage information

License

reload-wrapper is licensed under the MIT license.

Copyright © since 2018 shun@getto.systems

FAQs

Package last updated on 25 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts