Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hariombalhara/with-types
Install/Uninstall Packages with their types(@types/*)
https://github.com/hariombalhara/with-types
npm pnpm typescript yarn
Last synced: 21 days ago
JSON representation
Install/Uninstall Packages with their types(@types/*)
- Host: GitHub
- URL: https://github.com/hariombalhara/with-types
- Owner: hariombalhara
- Created: 2021-06-01T12:32:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-15T07:48:08.000Z (about 3 years ago)
- Last Synced: 2024-04-26T16:06:24.437Z (7 months ago)
- Topics: npm, pnpm, typescript, yarn
- Language: JavaScript
- Homepage:
- Size: 285 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`](https://yarnpkg.com/cli/dlx)Choose any of the following commands.
```bash
# Optional Step with npx
npm install with-types --save-dev```
```bash
# Optional Step with pnpx
pnpm add with-types --save-dev
`````` bash
# 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```bash
npx with-types install PACKAGE_NAME --save-dev # Supports same flags as npm
```
or```bash
pnpx with-types install PACKAGE_NAME --save-dev # Supports same flags as pnpm
```or
```bash
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
```bash
npx with-types uninstall PACKAGE_NAME
```or
```bash
pnpx with-types uninstall PACKAGE_NAME
```
or```bash
yarn with-types uninstall PACKAGE_NAME
```