🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

ferror

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ferror

a nice way to create errors that shows only what matters

latest
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

fError

a nice way to create errors that shows only what matters

Build Status

####Example:

var fError = require('ferror')('The name I want');

var error = fError('some nasty error');

the output shows the string/value ('The name I want') we used for the error name & shows only the stack we need to see

The name I want: some nasty error
    at /Users/quim/Projects/opensource/ferror/index.js:27:12
    at Test.<anonymous> (/Users/quim/Projects/opensource/ferror/test.js:15:15)

see the example file for more info

Keywords

errors

FAQs

Package last updated on 12 Jan 2015

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