cli.js 149 B

123456789
  1. #!/usr/bin/env node
  2. var mime = require('./mime.js');
  3. var file = process.argv[2];
  4. var type = mime.lookup(file);
  5. process.stdout.write(type + '\n');