Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

install-types

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

install-types

Auto install(uninstall) typings for your package dependencies

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Install Types

Auto install (uninstall) typings for your package dependencies.

Features

  • :package: Works with npm, yarn, pnpm
  • :sunny: Updated regularly
  • :palm_tree: In sync with DefinitelyTyped
  • :fishing_pole_and_fish: Can be hooked with npm and husky hooks

Install

Module

npm i install-types

CLI

npm install -D install-types

or globally

npm install -g install-types

Usage

As Module

install-types syncer can be directly used as a module, returning with an object for types to install and uninstall

import typesyncer from "install-types";

const types = typesyncer();

/**
 * {
 *    install: {}, type dependencies to install
 *    uninstall: {} type dependencies to uninstall
 * }
 */
Options
optionsdescriptiontype
excludeexclude dependenciesArray

As CLI

You can use it directly in the cli if installed globally or can be used as a postinstall or prebuild script on your package.json.

"scripts": {
  "postinstall": "install-types",
}
CLI Options
optionsdescription
--yarnuse yarn as package manager
--pnpmuse pnpm as package manager
--removeUnusedremove unused types
--excludeexclude dependencies

Note

install-types uses types-directory internally sync with the types.

Keywords

FAQs

Package last updated on 14 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc