Have ideas to improve npm?Join in the discussion! »

html-encodings

2.1.0 • Public • Published

html-encodings

Build Downloads Size

Info on known HTML character encodings labels, from the spec.

Install

npm:

npm install html-encodings

Use

var htmlEncodings = require('html-encodings')
 
console.log(htmlEncodings.list.slice(0, 10))
console.log(htmlEncodings.groups['UTF-8'])

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

License

MIT © Titus Wormer

Install

npm i html-encodings

DownloadsWeekly Downloads

5

Version

2.1.0

License

MIT

Unpacked Size

9.52 kB

Total Files

5

Last publish

Collaborators

  • avatar