property MIMEType.prototype.type
Usage in Deno
import { MIMEType } from "node:util";
Gets and sets the type portion of the MIME.
import { MIMEType } from 'node:util'; const myMIME = new MIMEType('text/javascript'); console.log(myMIME.type); // Prints: text myMIME.type = 'application'; console.log(myMIME.type); // Prints: application console.log(String(myMIME)); // Prints: application/javascript
string