|
mime.contentType('file.json') // 'application/json; charset=utf-8' |
The charset attribute does not exist for application/json - JSON is Unicode by definition, it's the only valid charset.
Is that what the function actually returns, or just a documentation issue?
mime-types/README.md
Line 82 in 7c3c63d
The
charsetattribute does not exist forapplication/json- JSON is Unicode by definition, it's the only valid charset.Is that what the function actually returns, or just a documentation issue?