1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env node 'use strict'; var mime = require('.'); var file = process.argv[2]; var type = mime.getType(file); process.stdout.write(type + '\n');