New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

interference

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

interference

Custom error factory for microservices with http code and "internal" code props

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

interference2

NPM version NPM downloads styled with prettier Dependencies Status

Custom error factory for microservices with HTTP code and internal type props Edit

Install

npm install interference

Usage

import Interference, { isInterference } from 'interference'

const err = Interference({ message: 'Good news everyone', type: 'FUTURAMA' })

if (isInterference(err) && err.type === 'FUTURAMA') {
  console.log('We have a special delivery today')
}

Factory Signature

({ message: string, type?: string, details?: any, code?: number }): Interference

Referenct to < es6 target

Extending built-ins Error

Keywords

FAQs

Package last updated on 28 Aug 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc