New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

get-target

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-target

builder's extractor of a class, for handling of decorators

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Get Target

builder's extractor of a class, for handling of decorators

NPM Version Package License NPM Downloads Coverage

🏆 Installation

# Using npm
npm install --save get-target

# Using yarn
yarn add --save get-target

🏳‍🌈 Usage

import getTarget from 'get-target';

// For class decorator
function Module(options) {
   return target => {
      target = getTarget(target);
      // Here you can use your builder to store in ReflecMetadata !
   };
}

// For param decorator
function Param(options) {
   return (target, property, index) => {
      target = getTarget(target);
      // Here you can use your builder to store in ReflecMetadata !
   };
}

⭐ Support for

get-target is an open source project licensed by MIT. You can grow thanks to the sponsors and the support of the amazing sponsors. If you want to join them, contact me here.

🎩 Stay in touch

Contributors

Thanks to the wonderful people who collaborate with me !

📜 License

get-target under License MIT.

Keywords

get-target

FAQs

Package last updated on 18 May 2020

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