doipjs/node_modules/mime/cli.js

11 lines
157 B
JavaScript
Raw Normal View History

2020-10-23 14:35:53 -06:00
#!/usr/bin/env node
'use strict';
var mime = require('.');
var file = process.argv[2];
var type = mime.getType(file);
process.stdout.write(type + '\n');