Giter VIP home page Giter VIP logo

small-server's Introduction

@xiedacon/small-server

Build Status JavaScript Style Guide MIT

一个简单的静态资源服务器实现,可以使用在任何目录

Usage

npm i -g @xiedacon/small-server

在当前目录使用
small-server

在指定目录使用
small-server -r ~/root-dir

API

  Usage: small-server [options]

  Options:

    -a, --address [value]  Address, default localhost (defaults to "localhost")
    -h, --help             Output usage information
    -o, --open [value]     Open browser, default true (defaults to "true")
    -p, --port <n>         Port, default 3000 (defaults to 3000)
    -r, --root [value]     Root directory to start server (defaults to cwd)
    -v, --version          Output the version number

License

MIT License

Copyright (c) 2017 xiedacon

small-server's People

Contributors

xiedacon avatar snyk-bot avatar dependabot[bot] avatar

Stargazers

Roman avatar Mr Torn avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

torns

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.