summaryrefslogtreecommitdiffstats
path: root/middleware/node_modules/mime/cli.js
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/node_modules/mime/cli.js')
-rwxr-xr-xmiddleware/node_modules/mime/cli.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/middleware/node_modules/mime/cli.js b/middleware/node_modules/mime/cli.js
new file mode 100755
index 0000000..20b1ffe
--- /dev/null
+++ b/middleware/node_modules/mime/cli.js
@@ -0,0 +1,8 @@
+#!/usr/bin/env node
+
+var mime = require('./mime.js');
+var file = process.argv[2];
+var type = mime.lookup(file);
+
+process.stdout.write(type + '\n');
+