Skip to main content
MIMEType.prototype.type - node__util.d.ts - Node documentation
property MIMEType.prototype.type

Usage in Deno

```typescript import { MIMEType } from "node:node__util.d.ts"; ```
Gets and sets the type portion of the MIME. ```js 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 ```

Type

string