Socket
Book a DemoInstallSign in
Socket

now-serve

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

now-serve

Single command static hosting

latest
Source
npmnpm
Version
0.5.1
Version published
Weekly downloads
18
Maintainers
2
Weekly downloads
 
Created
Source

now-serve

Build Status XO code style Slack Channel

This packages makes it very easy to share directories using now!

How it works

When running the ns command, a temporary directory gets created. Within that directory, now-serve will insert a brand new package.json that conforms to now's requirements and therefore contains a start script that runs a new instance of list when being executed on our servers.

All of this happens completely automatically. So after running the command, the only thing you need to do is wait a few seconds until your files have been deployed and share the link! :boom:

Usage

Install it (needs at least node v6)

$ npm install now-serve -g

Run it

$ ns <file | dir> [options] 

You can find a list of all options below.

Options

UsageDescription
-h, --helpOutput all available options
-V, --versionThe version tag of the now-serve instance on your device
‑c, ‑‑cmd [command]The command that should be run when starting
-n, --name [name]The name for your deployment
‑p, ‑‑packages <names>Custom packages to add to dependencies: "gulp, koa"
-a, --arguments A string containing arguments that will be passed on to now: "force, debug" (basically the names of the flags but without dashes)
-s, --singleServe single page apps with only one index.html in the root directory

Contribute

  • Fork this repository to your own GitHub account and then clone it to your local device
  • Uninstall now-serve if it's already installed: npm uninstall now-serve -g
  • Link it to the global module directory: npm link
  • Transpile the source code and watch for changes: npm start

Yeeha! Now can use the ns command everywhere.

FAQs

Package last updated on 13 Oct 2016

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