npm / npm-remote-ls

Examine a package's dependency graph before you install it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memoize request to registry

piranna opened this issue · comments

Since npm-remote-ls fetch the info for all the versions of a module stored on the registry there's no need to ask for it each time, so memoize/cache the results and use them instead of doing a new request. The async module already being used has a function just for it.

@piranna want to draft up a pull? would happily accept it.