On Sun, Oct 28, 2012 at 2:53 AM, Angelo Chen <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to