data-media-type
A Node.js module for finding IANA registered names for common data types.
See also:
hypermedia-type
- contains common hypermedia typesapi-media-type
- combines data-media-type and hypermedia-type
Install
$ npm install data-media-type
Usage
var http = ;var DataMediaType = ; http;
Supported Media Types
DataMediaType.FORM_URLENCODED
=> application/x-www-form-urlencodedDataMediaType.JSON
=> application/jsonDataMediaType.MULTIPART_FORM_DATA
=> multipart/form-dataDataMediaType.OCTET_STREAM
=> application/octet-streamDataMediaType.TEXT_PLAIN
=> text/plainDataMediaType.TEXT_XML
=> text/xmlDataMediaType.XML
=> application/xml
License
MIT