Socket
Book a DemoInstallSign in
Socket

with-types

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

with-types

Install/Uninstall Packages with their types(@types/*)

latest
Source
npmnpm
Version
0.1.17
Version published
Maintainers
1
Created
Source

Install/Uninstall Packages with their types(@types/*)

Ever installed a package to later find out that you don't have that package's @typings/ installed ? If yes, this is the solution for that.

How to Install

Package Name is with-types. Install it using your favorite Package Manager. A local installation is not required if you are using pnpm or npm. As pnpx and npx allow downloading a package and execute it without installation. With Yarn 2.0, this is achievable using yarn dlx

Choose any of the following commands.

# Optional Step with npx
npm install with-types --save-dev

# Optional Step with pnpx
pnpm add with-types --save-dev
# Optional Step with Yarn 2.0 but required for lesser versions
yarn add with-types --dev

How to use

NOTE: If the package is installed locally, you can use a shorthand wt instead of with-types. So, npx with-types become npx wt

  • To install a package with it's typings

    npx with-types install PACKAGE_NAME --save-dev # Supports same flags as npm
    

    or

    pnpx with-types install PACKAGE_NAME --save-dev # Supports same flags as pnpm
    

    or

    yarn with-types install PACKAGE_NAME --dev # Supports same flags as yarn. It assumes that package is installed locally.
    
  • To uninstall a package and it's typings

    npx with-types uninstall PACKAGE_NAME
    

    or

    pnpx with-types uninstall PACKAGE_NAME
    

    or

    yarn with-types uninstall PACKAGE_NAME
    

Keywords

pnpm

FAQs

Package last updated on 15 Sep 2021

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