Get package dependencies from NPM registry API

Try sending a GET request to e.g. https://registry.npmjs.org/ansi-codes or https://registry.npmjs.org/ansi-codes/0.0.2. See the API documentation.