Socket
Book a DemoInstallSign in
Socket

ngx-custom-decorators

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-custom-decorators

*Betta version not yet ready for production use.* Any ideas for decorators would be appreciated :)

0.0.0-beta-7
latest
Source
npmnpm
Version published
Weekly downloads
1
-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

ngx-custom-decorators

Betta version not yet ready for production use. Any ideas for decorators would be appreciated :)

Targets

  • Create set of framework agnostic decorators supported by JS and TS
  • Set of TS dedicated decorators, mainly "method's params decorators"
  • Create subset of specific framework based decorators
    • Angular
    • React
    • Vue.Js

Get It

npm i ngx-custom-decorators -S

Use It

import { timer } from 'ngx-custom-decorators';

class MyClass{
    constructor(...){...}
    
    @timer('my message to see in logs') 
    someLongRunMethod(){
        // ....//
    }
    
    @timer() // param is optional 
    someLongRunMethod(){
        // ....//
    }
    
}

Develop

git clone https://github.com/danduh/ngx-custom-decorators.git
cd  ngx-custom-decorators
npm i

File structure:

Library

src/lib/ actual library of all decorators

ng build will build the library

Demo

projects/demo/ demo app for use, test and examples

ng serve demo will run demo app .

Keywords

decorators

FAQs

Package last updated on 16 Jun 2019

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.