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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i validate-encoding

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • reklatsmasters