Gets the Content Type for a URL
npm install get-content-typebash
npm install get-content-type
`Usage
`js
const { getContentType } = require('get-content-type');const url = "https://s3-us-west-2.amazonaws.com/planet-disaster-data/hurricane-harvey/SkySat_Freeport_s03_20170831T162740Z3.tif";
const { contentType } = await getContentType({ url });
// contentType is "image/tiff"
`Advanced Usage
Modifying High Water Mark
The High Water Mark is how many bytes to read before returning the result. The default is 1024.
`js
const { contentType } = await getContentType({ highWaterMark: 512, url });
``