# tracedpromise

> extended promise for tracing all .then calls

Latest version **0.0.1** (published 2014-08-18) · 0 weekly downloads

## Install

```sh
npm install tracedpromise
pnpm add tracedpromise
yarn add tracedpromise
bun add tracedpromise
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-08-18 |
| First published | 2014-08-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kai-en |
| Maintainers | kai-en |
| Keywords | promise, trace |

## Links

- npm: https://www.npmjs.com/package/tracedpromise
- Repository: https://github.com/kai-en/tracedpromise
- Issues: https://github.com/kai-en/tracedpromise/issues
- npm.io page: https://npm.io/package/tracedpromise

## Dependencies (1)

- [promise](https://npm.io/package/promise.md) *

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-08-18

## README

tracedpromise
=============

**tracedpromise** is extended from promise of node.js. You can use it as normal promise. 
It added a method named "trace" to trace the "caller" of a promise to the end of all ".then" calls.
It is useful to log every steps of a promise for a purpose, like an express function responsing an url.

Installation
------------

    npm install tracedpromise

Usage
-----

Example:

    var TracedPromise = require("tracedpromise");
    
    TracedPromise.trace({msg:"some tracing message"});
    new TracedPromise(function(res, rej) {
        // do some thing async
    })
    .then(function() {
        var traced = TracedPromise.trace();
        console.log(traced.msg);
    });

Notice
------

Be sure to use all methods from **tracedpromise**, including *.then* *.done* *.all* *.race*.

## License

**MIT**

---
_Source: https://npm.io/package/tracedpromise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
