FAQ
Hi,

trying to find a quick and dirty solution in nodejs: often need to access a
folder in mac from ipad's Safari, is there a simple, one file nodejs
script that can do it? thanks,

Angelo

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Search Discussions

  • Ryan Schmidt at Oct 28, 2012 at 9:31 am

    On Oct 28, 2012, at 02:53, Angelo Chen wrote:

    trying to find a quick and dirty solution in nodejs: often need to access a folder in mac from ipad's Safari, is there a simple, one file nodejs script that can do it? thanks,
    Be more specific. Define "access".

    If you just want to see the contents of a folder on your Mac from your iPad and access MobileSafari-compatible files inside it, for example, you could run any web server on your Mac and let it serve that folder. Since I'm guessing that's not what you meant, let us know what you meant.



    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • Angelo Chen at Oct 28, 2012 at 11:32 am
    that's exactly what I want, but turned out some problem with Apache
    server came with os x, and can't make it to work, and was in a hurry,
    so made a simple ExpressJS to do the job, but it has quite a number of
    default folders, was thinking probably there is this simple nodejs
    that can do this without creating an expressjs app.
    On Oct 28, 5:26 pm, Ryan Schmidt wrote:
    On Oct 28, 2012, at 02:53, Angelo Chen wrote:

    trying to find a quick and dirty solution in nodejs: often need to access a folder in mac from  ipad's Safari, is there a simple, one file nodejs script that can do it? thanks,
    Be more specific. Define "access".

    If you just want to see the contents of a folder on your Mac from your iPad and access MobileSafari-compatible files inside it, for example, you could run any web server on your Mac and let it serve that folder. Since I'm guessing that's not what you meant, let us know what you meant.
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • Angelo Chen at Oct 28, 2012 at 11:48 am
    I did some google, and found out python has that:

    python -m SimpleHTTPServer

    On Oct 28, 5:26 pm, Ryan Schmidt wrote:
    On Oct 28, 2012, at 02:53, Angelo Chen wrote:

    trying to find a quick and dirty solution in nodejs: often need to access a folder in mac from  ipad's Safari, is there a simple, one file nodejs script that can do it? thanks,
    Be more specific. Define "access".

    If you just want to see the contents of a folder on your Mac from your iPad and access MobileSafari-compatible files inside it, for example, you could run any web server on your Mac and let it serve that folder. Since I'm guessing that's not what you meant, let us know what you meant.
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • Andrew Chilton at Oct 28, 2012 at 10:13 pm

    On 29 October 2012 00:48, Angelo Chen wrote:
    I did some google, and found out python has that:

    python -m SimpleHTTPServer
    Similar to this:

    $ npm install -g http-server
    $ http-server your-folder/

    It'll be served up on port 8080. You can use options to change the
    port (-p), address (-a) to listen on and whether to show an auto-index
    file (-i). It's brilliant. :)

    Cheers,
    Andy

    --
    Andrew Chilton
    e: chilts@appsattic.com
    w: http://appsattic.com/
    t: https://twitter.com/andychilton
    p: +64 21 891 681

    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • Angelo Chen at Oct 28, 2012 at 11:24 pm
    This works very well, thanks.
    if nodejs has a default http - server like this, that will be cool,
    wondering why not ? Python got one.
    On Monday, October 29, 2012 6:14:06 AM UTC+8, chilts wrote:

    On 29 October 2012 00:48, Angelo Chen <angelo...@gmail.com <javascript:>>
    wrote:
    I did some google, and found out python has that:

    python -m SimpleHTTPServer
    Similar to this:

    $ npm install -g http-server
    $ http-server your-folder/

    It'll be served up on port 8080. You can use options to change the
    port (-p), address (-a) to listen on and whether to show an auto-index
    file (-i). It's brilliant. :)

    Cheers,
    Andy

    --
    Andrew Chilton
    e: chi...@appsattic.com <javascript:>
    w: http://appsattic.com/
    t: https://twitter.com/andychilton
    p: +64 21 891 681
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • P. Douglas Reeder at Oct 29, 2012 at 2:34 am
    The Node philosophy is "batteries not included". Node is not focussed on
    plug-n-play solutions.
    On Sunday, October 28, 2012 7:24:13 PM UTC-4, Angelo Chen wrote:

    This works very well, thanks.
    if nodejs has a default http - server like this, that will be cool,
    wondering why not ? Python got one.
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • Josh Faul at Nov 1, 2012 at 12:17 am
    I actually use this in my .zshrc:
    alias servethis="python -m SimpleHTTPServer 8888"

    And then I have an easily accessible bookmark for it. Very handy for
    testing simple things.
    On Sunday, October 28, 2012 5:48:39 AM UTC-6, Angelo Chen wrote:

    I did some google, and found out python has that:

    python -m SimpleHTTPServer

    On Oct 28, 5:26 pm, Ryan Schmidt wrote:
    On Oct 28, 2012, at 02:53, Angelo Chen wrote:

    trying to find a quick and dirty solution in nodejs: often need to
    access a folder in mac from ipad's Safari, is there a simple, one file
    nodejs script that can do it? thanks,
    Be more specific. Define "access".

    If you just want to see the contents of a folder on your Mac from your
    iPad and access MobileSafari-compatible files inside it, for example, you
    could run any web server on your Mac and let it serve that folder. Since
    I'm guessing that's not what you meant, let us know what you meant.
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • Isaac Schlueter at Nov 1, 2012 at 5:27 am
    npm install st -g

    Then type st in the dir you want to serve.
    On Wednesday, October 31, 2012, Josh Faul wrote:

    I actually use this in my .zshrc:
    alias servethis="python -m SimpleHTTPServer 8888"

    And then I have an easily accessible bookmark for it. Very handy for
    testing simple things.
    On Sunday, October 28, 2012 5:48:39 AM UTC-6, Angelo Chen wrote:

    I did some google, and found out python has that:

    python -m SimpleHTTPServer

    On Oct 28, 5:26 pm, Ryan Schmidt wrote:
    On Oct 28, 2012, at 02:53, Angelo Chen wrote:

    trying to find a quick and dirty solution in nodejs: often need to
    access a folder in mac from ipad's Safari, is there a simple, one file
    nodejs script that can do it? thanks,
    Be more specific. Define "access".

    If you just want to see the contents of a folder on your Mac from your
    iPad and access MobileSafari-compatible files inside it, for example, you
    could run any web server on your Mac and let it serve that folder. Since
    I'm guessing that's not what you meant, let us know what you meant.
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines:
    https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com<javascript:_e({}, 'cvml', 'nodejs@googlegroups.com');>
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com <javascript:_e({}, 'cvml',
    'nodejs%2bunsubscribe@googlegroups.com');>
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • Arunoda Susiripala at Nov 1, 2012 at 6:30 am
    Thanks iz.

    Looks great will use it instead python :)

    On Thu, Nov 1, 2012 at 10:56 AM, Isaac Schlueter wrote:

    npm install st -g

    Then type st in the dir you want to serve.

    On Wednesday, October 31, 2012, Josh Faul wrote:

    I actually use this in my .zshrc:
    alias servethis="python -m SimpleHTTPServer 8888"

    And then I have an easily accessible bookmark for it. Very handy for
    testing simple things.
    On Sunday, October 28, 2012 5:48:39 AM UTC-6, Angelo Chen wrote:

    I did some google, and found out python has that:

    python -m SimpleHTTPServer

    On Oct 28, 5:26 pm, Ryan Schmidt wrote:
    On Oct 28, 2012, at 02:53, Angelo Chen wrote:

    trying to find a quick and dirty solution in nodejs: often need to
    access a folder in mac from ipad's Safari, is there a simple, one file
    nodejs script that can do it? thanks,
    Be more specific. Define "access".

    If you just want to see the contents of a folder on your Mac from your
    iPad and access MobileSafari-compatible files inside it, for example, you
    could run any web server on your Mac and let it serve that folder. Since
    I'm guessing that's not what you meant, let us know what you meant.
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines:
    https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines:
    https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en


    --
    Arunoda Susiripala

    @arunoda <http://twitter.com/arunoda>
    <http://gplus.to/arunoda>https://github.com/arunoda
    http://www.linkedin.com/in/arunoda

    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • David guttman at Nov 1, 2012 at 4:06 pm
    There's also "serve" by tjholowaychuk: https://npmjs.org/package/serve

    npm install serve -g
    serve
    On Wednesday, October 31, 2012 11:30:29 PM UTC-7, Arunoda Susiripala wrote:

    Thanks iz.

    Looks great will use it instead python :)


    On Thu, Nov 1, 2012 at 10:56 AM, Isaac Schlueter <i...@izs.me<javascript:>
    wrote:
    npm install st -g

    Then type st in the dir you want to serve.

    On Wednesday, October 31, 2012, Josh Faul wrote:

    I actually use this in my .zshrc:
    alias servethis="python -m SimpleHTTPServer 8888"

    And then I have an easily accessible bookmark for it. Very handy for
    testing simple things.
    On Sunday, October 28, 2012 5:48:39 AM UTC-6, Angelo Chen wrote:

    I did some google, and found out python has that:

    python -m SimpleHTTPServer

    On Oct 28, 5:26 pm, Ryan Schmidt wrote:
    On Oct 28, 2012, at 02:53, Angelo Chen wrote:

    trying to find a quick and dirty solution in nodejs: often need to
    access a folder in mac from ipad's Safari, is there a simple, one file
    nodejs script that can do it? thanks,
    Be more specific. Define "access".

    If you just want to see the contents of a folder on your Mac from
    your iPad and access MobileSafari-compatible files inside it, for example,
    you could run any web server on your Mac and let it serve that folder.
    Since I'm guessing that's not what you meant, let us know what you meant.
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines:
    https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines:
    https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nod...@googlegroups.com<javascript:>
    To unsubscribe from this group, send email to
    nodejs+un...@googlegroups.com <javascript:>
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en


    --
    Arunoda Susiripala

    @arunoda <http://twitter.com/arunoda>
    <http://gplus.to/arunoda>https://github.com/arunoda
    http://www.linkedin.com/in/arunoda
    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • Mark Volkmann at Oct 28, 2012 at 12:26 pm

    On Sun, Oct 28, 2012 at 2:53 AM, Angelo Chen wrote:
    Hi,

    trying to find a quick and dirty solution in nodejs: often need to access a folder in mac from ipad's Safari, is there a simple, one file nodejs script that can do it? thanks,
    You could use Strata ... npm install strata

    Suppose you want to server the files in a subdirectory named "public".

    var strata = require('strata');
    strata.use(strata.file, 'public', 'index.html');
    strata.run(); // port defaults to 1982

    --
    R. Mark Volkmann
    Object Computing, Inc.

    --
    Job Board: http://jobs.nodejs.org/
    Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To post to this group, send email to nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupnodejs @
categoriesnodejs
postedOct 28, '12 at 7:53a
activeNov 1, '12 at 4:06p
posts12
users9
websitenodejs.org
irc#node.js

People

Translate

site design / logo © 2022 Grokbase