Notoriously Punctual Manatee

    csrv
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    csrv

    build status dependency status npm version

    This is a simple Node.js -based HTTP server for static files. No bloat. Under 10 KB download, no dependencies.

    Perfect for bundling a fully working demo with frontend JavaScript projects.

    Usage

      Usage: csrv [OPTION]... DIRECTORY
    
      Start HTTP server with public root in DIRECTORY.
    
      Options:
    
        -p, --port=PORT  Bind to given TCP port (default 8080).
    

    Calling from TypeScript

    import { Server } from './Server';
     
    new Server('public_html').listen(8080, (err: null | NodeJS.ErrnoException) => {
        if(!err) console.log('Serving...');
    });

    License

    The MIT License

    Copyright (c) 2016-2017 BusFaster Ltd

    Keywords

    none

    Install

    npm i csrv

    DownloadsWeekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • jjrv