node-test/node_modules/mime/cli.js

9 lines
149 B
JavaScript
Raw Normal View History

2022-12-15 10:14:42 +00:00
#!/usr/bin/env node
var mime = require('./mime.js');
var file = process.argv[2];
var type = mime.lookup(file);
process.stdout.write(type + '\n');