Skip to content

Commit 939849d

Browse files
committed
works with our existing list of types
1 parent 31c074a commit 939849d

File tree

11 files changed

+3988
-0
lines changed

11 files changed

+3988
-0
lines changed

Diff for: Makefile

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
ESLINT=./node_modules/.bin/eslint
2+
TAP=./node_modules/.bin/tap
3+
4+
# ------------------------------------------------------------------------------
5+
6+
start:
7+
node server.js
8+
9+
# ------------------------------------------------------------------------------
10+
11+
lint:
12+
$(ESLINT) ./*.js
13+
$(ESLINT) ./lib/*.js
14+
$(ESLINT) ./test/**/*.js
15+
16+
tap-tests:
17+
$(TAP) ./test/{unit,functional,integration}/*.js
18+
19+
test:
20+
@make lint
21+
@make tap-tests
22+
23+
coverage:
24+
$(TAP) ./test/{unit,functional,integration}/*.js --coverage --coverage-report=lcov
25+
26+
.PHONY: start lint test coverage load

Diff for: lib/typeslist.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
gif: {ext: 'gif', mime: 'image/gif'},
3+
jpg: {ext: 'jpg', mime: 'image/jpg'},
4+
jpm: {ext: 'jpg', mime: 'image/jpg'},
5+
jpx: {ext: 'jpg', mime: 'image/jpg'},
6+
jp2: {ext: 'jpg', mime: 'image/jpg'},
7+
json: {ext: 'json', mime: 'application/json'},
8+
mj2: {ext: 'jpg', mime: 'image/jpg'},
9+
png: {ext: 'png', mime: 'image/png'},
10+
webp: {ext: 'webp', mime: 'image/webp'},
11+
wav: {ext: 'wav', mime: 'audio/x-mav'},
12+
zip: {ext: 'zip', mime: 'application/zip'}
13+
};

0 commit comments

Comments
 (0)