cli.js 157 B

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