How to use file-uti - 1 common examples

To help you get started, we’ve selected a few file-uti examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sindresorhus / uti-cli / cli.js View on Github external
#!/usr/bin/env node
'use strict';
const meow = require('meow');
const fileUti = require('file-uti');

const cli = meow(`
	Example
	  $ uti unicorn.md
	  net.daringfireball.markdown
`);

console.log(fileUti.sync(cli.input[0]));

file-uti

Get the UTI (Uniform Type Identifier) of a file on macOS

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis

Popular file-uti functions