typac
typac copied to clipboard
install npm packages along with corresponding typings
TYPAC - TYped PACkage manager
Every time you need to do something like this npm install --save <package>
and then npm install --save-dev @types/<package>
typac is just for you!
Description
Cli tool for installing npm package with corresponding @types
typings package (if it exists).
Install
npm install -g typac
or
yarn global add typac
Usage
-
typac <package>
- install<package>
in dependencies section and corresponding type definitions package in devDependencies section -
typac <package> -d
ortypac <package> --dev
- install<package>
and corresponding type definitions package, both in devDependencies section -
typac <package> -s
ortypac <package> --save
- install<package>
and corresponding type definitions package, both in dependencies section -
typac <package 1> [<package 2> ...]
- install several packages
TODO
- [ ] more complete tests
- [ ] npm/yarn error handling
Named by @ploddi