Socket
Book a DemoInstallSign in
Socket

@jcassidyav/generate-metadata-filter

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jcassidyav/generate-metadata-filter

Generate a metadata filter from typescript

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Examines the typescript code of Nativescript Project/Plugin, outputting the types determined to be Native types.

POC

Currently only works with android

Installation

npm i -g @jcassidyav/generate-metadata-filter

Usage

  • Create a config file named .generate-metadata-filter.json in the root of your app, or the root of the plugin source code, e.g packages/mypackage.

  • Add paths to any type definitions you have added for custom native types.

    {
    
        "typeSources":{
            "ios": [],
            "android": ["ns-typings/android/*"]
        },
        "mode":"plugin"
    }
    
  • Execute command generate-metadata-filter in the same directory.

Keywords

typescript

FAQs

Package last updated on 16 Dec 2022

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