Skip to content

Commit 1bca445

Browse files
update doc
1 parent 71c96c8 commit 1bca445

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

__package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "github-5-output-static",
3+
"version": "1.0.0",
4+
"description": "Фильтр запросов статичных ресурсов\r ```\r Возвращает запрашиваемый ресурс, если\r - он является файлом,\r - его расширению сопоставлен MIME,\r - он не запрещен для скачивания.",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/German-Stepanov/nodejs-output-static.git"
12+
},
13+
"author": "",
14+
"license": "ISC",
15+
"bugs": {
16+
"url": "https://github.com/German-Stepanov/nodejs-output-static/issues"
17+
},
18+
"homepage": "https://github.com/German-Stepanov/nodejs-output-static#readme"
19+
}

_demo/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ myConfig.static = {
2525
isDebug : true,
2626
};
2727
//Модуль фильтрации разрешенных статических ресурсов
28-
var static = require('output-static')(myConfig.static);
28+
var static = require('../index.js')(myConfig.static);
2929
//Модуль шаблонов
3030
var output = require('output-view')(myConfig.output);
3131

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"version": "1.0.2",
44
"description": "Filter of static files requests",
55
"main": "index.js",
6-
"dependencies": {
7-
},
6+
"dependencies": {},
87
"devDependencies": {},
98
"scripts": {
109
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)