This package has been deprecated

Author message:

NO LONGER MAINTAINED

the-decorators

1.0.2 • Public • Published

the-decorators

Build Status npm Version JS Standard

Decorators for the-framework

Installation

$ npm install the-decorators --save

Usage

'use strict'
 
const {rescue} = require('the-decorators')
 
async function tryExample () {
 
  class MyClass {
 
    @rescue((e, instance) => console.error(e))
    async doSomethingMightThrow () {
      /* ... */
    }
 
  }
 
}
 
tryExample().catch((err) => console.error(err))
 

API Guide

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i the-decorators

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

24.5 kB

Total Files

28

Last publish

Collaborators

  • okunishinishi