Socket
Book a DemoInstallSign in
Socket

miller-error

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

miller-error

Schema validator for error objects.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

miller-error

NPM version build status Test coverage

Schema validator for error objects. Built with miller.

Installation

$ npm i --save miller-error

Overview

Validate an object. Either throws a TypeError or returns the same object.

var errSchema = require('miller-error');

errSchema({
  error: new Error('login error'),
  message: 'Whoops, something went wrong with the login',
  statusCode: 1
});

License

MIT © Yoshua Wuyts

Keywords

schema

FAQs

Package last updated on 04 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts