You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@xylabs/error

Package Overview
Dependencies
Maintainers
5
Versions
417
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/error

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

Source
npmnpm
Version
5.0.75
Version published
Weekly downloads
13K
483.66%
Maintainers
5
Weekly downloads
 
Created
Source

@xylabs/error

logo

main-build npm-badge npm-downloads-badge jsdelivr-badge npm-license-badge codacy-badge codeclimate-badge snyk-badge socket-badge

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

Reference

@xylabs/error

Functions

functions

handleError

@xylabs/error

function handleError<T>(error, handler): T;

Type Parameters

T

T

Parameters

error

any

handler

(error) => T

Returns

T

handleErrorAsync

@xylabs/error

function handleErrorAsync<T>(error, handler): Promise<T>;

Type Parameters

T

T

Parameters

error

any

handler

(error) => Promise<T>

Returns

Promise<T>

isError

@xylabs/error

function isError(error): error is Error;

Parameters

error

any

Returns

error is Error

Part of sdk-js

Maintainers

License

See the LICENSE file for license details

Credits

Made with 🔥 and ❄️ by XYLabs

Keywords

error

FAQs

Package last updated on 09 Feb 2026

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