Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

error-stamp

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

error-stamp - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "error-stamp",
"version": "0.0.2",
"version": "0.0.3",
"description": "Mutate an Error object to include a stamp of current step",

@@ -5,0 +5,0 @@ "main": "index.js",

# error-stamp [![Build Status][ci-img]][ci]
Mutate a JS error object to include a stamp of current step.
## Why
[ci-img]: https://travis-ci.org/pazams/error-stamp.svg
[ci]: https://travis-ci.org/pazams/error-stamp
## Why
The main motivation for this module is for using [Node.JS style callbacks](https://nodejs.org/api/errors.html#errors_node_js_style_callbacks). When passing the Error object, it contains the details of the sync call, but loses track of all async coming after.

@@ -19,3 +22,3 @@

```JS
var stamp = require('errorStamp');
var stamp = require('error-stamp');

@@ -31,3 +34,3 @@ if(err) {

```JS
var stamp = require('errorStamp');
var stamp = require('error-stamp');

@@ -34,0 +37,0 @@ if(stamp(err)) {

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