em-webfiles

0.2.5 • Public • Published

em-webfiles

http files middleware for ee-webservice

installation

npm install em-webfiles

build status

Build Status

var   Webfiles 	= require('ee-webfiles')
    , FSLoader 	= require();


var   files = new Webfiles()
	, loader = new FSLoader({path: '/path/to/files'});


loader.on('load', function(err) {
	files.use(loader);
});


// serve index.html, index.json & default.htm files as directory index
files.addDirectoryIndex( "default.htm" );


webservice.use(files);

Readme

Keywords

Package Sidebar

Install

npm i em-webfiles

Weekly Downloads

1

Version

0.2.5

License

none

Last publish

Collaborators

  • ee