validate-encoding
v1.0.0 encoding validate check
validate-encoding
Validates whether a string matches the name of the encoding or not. Full list of the valid encoding names here
usage
const ve = require('validate-encoding');
ve('utf8'); // invalid
ve('utf-8'); // valid
API
exports(input)
- @param {string} input - candidate to validate
- @returns {bool}
Licsense
MIT, 2015 (c) Dmitry Tsvettsikh
npm i validate-encoding
Metadata
- MIT
- Whatever
- Dmitry Tsvettsikh
- released 1/17/2016