html-encodings
Info on known HTML character encodings labels, from the spec.
Install
npm:
npm install html-encodings
Use
var htmlEncodings = consoleconsole
Yields:
'utf8' 'utf-8' 'unicode-1-1-utf-8' '866' 'cp866' 'ibm866' 'csibm866' 'l2' 'latin2' 'iso88592' 'utf8' 'utf-8' 'unicode-1-1-utf-8'
API
htmlEncodings.list
Array.<string>
— List of lowercase encodings.
htmlEncodings.groups
Object.<Array.<string>>
— Map where each key is a group label, and each value
is a list of synonymous lowercase encodings.
Related
html-dangerous-encodings
— List of dangerous HTML character encoding labels