validate-encoding

1.0.0 • Public • Published

validate-encoding

npm license downloads

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i validate-encoding

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • reklatsmasters