News for hackers. Stuff that matters.

Show HN: my first nodejs module, fsjs

It's on GitHub:

https://github.com/arpith/fsjs

It lets you structure your app a little differently, app.js:

  require('fsjs')(8000,'user','repo',function(data,defaultCallback){
    defaultCallback('<!doctype html>'+data)
  })
And (in the same directory), edit.js:

  exports.get = function(file,callback) {
    console.log(this.request.url)
  // '/arpith/fsjs/edit/README.md'
    callback('the file edited is '+file)
  }
Feedback would be great.
( 3 comments | 3 points | on HN )
Re:Show HN: my first nodejs module, fsjs by revathskumar on Monday April 22, 2013 @12:01PM (#5589962)
@siromoney Great start, keep going.

I just wanna tell you that, pushing code to Github repo doesn't mean it's Open source.

* Select a Opensource License * Keep a License file in the root directory of project * Add link to License file from README.

Re:Show HN: my first nodejs module, fsjs by siromoney on Monday April 22, 2013 @10:09PM (#5592937)
Thanks! The license (MIT) was listed on NPM, but now I've added it to the readme and placed it in the root directory.
Re:Show HN: my first nodejs module, fsjs by siromoney on Monday April 22, 2013 @11:59AM (#5589943)