Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To include the module in your project:

var ifile = require('ifile');

##benchmark
## benchmark
send the same js file, 6KB size.

nginx
Expand Down Expand Up @@ -114,7 +114,7 @@ then request the 127.0.0.1:8124/static/xxx.js

if you have a file in __dirname/static/xxx.js then you will see it.

##API
## API

ifile.add(routearray,not_match_callback);

Expand Down Expand Up @@ -142,7 +142,7 @@ for example if add ["/static2",__dirname]
1,request "/user/aaa" will call the not_match_function,and is_static param will be 0;
2,request "/static/not_exist_file" will call the not_match_function,and is_static param will be 1;

##options
## options
set ifile.options property to change the default options,for example:

var ifile = require('ifile');
Expand All @@ -164,7 +164,7 @@ default options is that:

more example see /test/main.js

##expressjs example
## expressjs example

var express = require('express');
var app = express();
Expand Down