MIMEType.type property | Node.js util module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:util/
MIMEType/
typePtype
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:util/
MIMEType/
typePtype
property
util.MIMEType.typetype: string
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
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →