get-types

1.0.6 • Public • Published

Get Types

Look for packages that have typescript types defined in npm registry and add them to package.json

How to...

$ npm install -g get-types
 
$ get-types

Why

Go from this

{
  ...
  "dependencies": {
    "express": "^4.15.2",
    "jquery": "^3.2.1",
    "request": "^2.81.0"
  },
  ...
}

To this

{
  ...
  "dependencies": {
    "express": "^4.15.2",
    "jquery": "^3.2.1",
    "request": "^2.81.0"
  },
  "devDependencies": {
    "@types/express": "4.0.35",
    "@types/jquery": "2.0.41",
    "@types/request": "0.0.42"
  }
  ...
}

Todo

  • Update functionality

Package Sidebar

Install

npm i get-types

Weekly Downloads

2

Version

1.0.6

License

MIT

Last publish

Collaborators

  • mariusalchimavicius