1.0.0 • Published 9 years ago
validate-encoding v1.0.0
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