3 ms·
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.
- siromoney 13y agoGitHub URL: https://github.com/arpith/fsjs https://github.com/arpith/fsjs
- revathskumar 13y ago@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.
- siromoney 13y agoThanks! The license (MIT) was listed on NPM, but now I've added it to the readme and placed it in the root directory.