mime 149 Bytes
Newer Older
chrissi's avatar
1  
chrissi committed
1 2 3 4 5 6 7 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');