# mudecotex

> Introducing decorators to control synchronisity

Latest version **1.0.2** (published 2016-01-25) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-01-25 |
| First published | 2016-01-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Karl Lundfall |
| Maintainers | okcomputer |

## Links

- npm: https://www.npmjs.com/package/mudecotex
- Repository: https://github.com/Karolusrex/mudecotex
- Homepage: https://github.com/Karolusrex/mudecotex#readme
- Issues: https://github.com/Karolusrex/mudecotex/issues
- npm.io page: https://npm.io/package/mudecotex

## Recent versions

- 1.0.2 (latest) — 2016-01-25
- 1.0.1 — 2016-01-25
- 1.0.0 — 2016-01-25

## README

# Mudecotex

#Example
```
import {surpressedBy, mutex}     from 'mudecotex';

class Demo {

    constructor(){
        this.doStuff();
        this.foo();
    }

    @mutex('a')
    doStuff() {
        console.log('Doing some stuff.');
        this.doMoreStuff();
        console.log('Done doing stuff!');
    }


    @mutex('a')
    doMoreStuff(){
        console.log('Doing more stuff.');
        this.doFinalStuff();
        console.log('Done doing more stuff!');
    }

    @surpressedBy('foo')
    @mutex('a')
    doFinalStuff(){
        console.log('Doing final stuff.');
        console.log('Done final stuff!');
    }

    foo(){
        console.log('In foo, calling doFinalStuff');
        this.doFinalStuff();
        console.log('Done. Calling doFinalStuff had no effect');
    }

}


let main = new Demo();

```

Output:

```
Doing some stuff.
Done doing stuff!
Doing more stuff.
Done doing more stuff!
Doing final stuff.
Done final stuff!
In foo, calling doFinalStuff
Done. Calling doFinalStuff had no effect
```

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