Tristan F.-R.
Tristan F.-R.

Reputation: 4224

How can I efficiently tell if a batch of NPM packages has types?

With the NPM registry API, I would like to determine whether a package has types. So far, I have this process, but I'm wondering if there is a better way to check:

I run this process for a few thousand packages.

However, I would like to make the latter check more efficient, given that the NPM website indicates whether a package has types.

Is there a simple way to accomplish this that doesn't require downloading tarballs?

Upvotes: 1

Views: 56

Answers (0)

Related Questions