This package has been deprecated

    Author message:

    it will not be supported anymore

    server-node

    0.0.6 • Public • Published

    ServerNode

    Warning! Unstable

    Ready to use web-server for Node.js with cool features.

    Usage:

    Sample:

    var ServerNode = require('server-node'),
        server = new ServerNode();
    
    server.start();
    
    var myApi = new ServerNode.API();
    
    myApi.on('get', function (data) {
        data.response.writeHead(200);
        data.response.write('Hello world!\n');
        data.response.end();
    });
    
    server.api.register('myApi', myApi);
    

    Result:

    GET: http://localhost/myApi
    
    // Hello world!
    

    Keywords

    none

    Install

    npm i server-node

    DownloadsWeekly Downloads

    1

    Version

    0.0.6

    License

    MIT

    Last publish

    Collaborators

    • alex-skakun