http-status-validator

    1.1.0 • Public • Published

    HTTP Status Validator

    npm

    Simple way to validate HTTP Status code

    Installation

    $ npm install --save http-status-validator

    Usage

    //CommonsJS
    var statusValidator = require('http-status-validator');
     
    //ES6 syntax
    import statusValidator from 'http-status-validator'
     
    var responseStatus = response.status;
    if (statusValidator(responseStatus).equalsTo(200)) {
        //..
    }

    License

    MIT

    Install

    npm i http-status-validator

    DownloadsWeekly Downloads

    4

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • charlesrocha