Code Monkey home page Code Monkey logo

qr-serve's Introduction

Inspired by serve-7. Assuming you would like to serve a static site, single page application or just a static file (no matter if on your device or on the local network), this package is just the right choice for you.

Highlights

  • Light-weight CLI utility
  • Ability to serve SPA app
  • Ability to query LAN IP
  • Ability to transform IP into QR Codes and display on terminal
  • Support for changing QR Code size and color

Install

Install inside your project's directory and just run npx qr-serve.

npm install qr-serve --save
npx qr-serve

Install the package globally.

npm install qr-serve -g

Once that's done, you can run this command inside your project's directory...

qr-serve

...or specify which folder you want to serve:

qr-serve folder_name

Usage

Example

You can use qr-serve to serve static site.

qr-serve

Custom colors

Usage: qr-serve --qr-color [options] Colors Options:

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white

Example

qr-serve --qr-color green

Custom size

Usage: qr-serve --qr-size [options] Size Options: it should be number, in [2-40]

example

License

MIT

qr-serve's People

Contributors

lian1925 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.