Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xpodev/add-typed
https://github.com/xpodev/add-typed
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/xpodev/add-typed
- Owner: xpodev
- License: mit
- Created: 2022-07-06T10:27:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-05T14:28:08.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T13:40:30.239Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/addt
- Size: 132 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Add Typed
If you're tired of installing a package and then installing the types for the package in a separate command, this is for you.
## Installation
npm
```
npm i addt -g
```
yarn
```
yarn global add addt
```## Usage
Installing package[s] with types
```
addt [...]
```
Installing all packages in package.json with their types (see https://github.com/xpodev/add-typed/issues/1)
```
addt
```
Also works with `npx`
```
npx addt [...]
```### Arguments
The tool will pass any argument starts with `-` to the `npm` / `yarn` command, so make sure you use the correct arguments
#### Example
```
addt typescript --save-dev
```
Will be resolved to
```
npm install typescript --save-dev
```
or in yarn (which will cause a failure because `--save-dev` is not valid in yarn)
```
yarn add typescript --save-dev
```## Notes
- If a package does not have type declarations under the `@types` namespace the types installation will be skipped.