mime 149 Bytes Raw Blame History Permalink 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');