Not Particularly Meaningful
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    argo-subdomainpublic

    Subdomain parser for argo.

    Simple middleware for argo that will parse out the subdomain attached to the host header and place it in the environment variable.

    Usage

    var subdomain = require('argo-subdomain');
    var argo = require('argo');
     
    argo()
      .use(subdomain)
      .use(function(handle) {
        handle('response', function(env, next) {
          console.log(env.request.subdomain);
          next(env);
        });
      })
      .listen(3000);

    Keywords

    none

    install

    npm i argo-subdomain

    Downloadslast 7 days

    2

    version

    0.0.1

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar