{"id":13991985,"url":"https://github.com/npm/npm-remote-ls","last_synced_at":"2025-10-07T03:31:17.158Z","repository":{"id":18466261,"uuid":"21661018","full_name":"npm/npm-remote-ls","owner":"npm","description":"Examine a package's dependency graph before you install it","archived":true,"fork":false,"pushed_at":"2021-06-28T15:24:59.000Z","size":42,"stargazers_count":90,"open_issues_count":18,"forks_count":36,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-01-13T14:13:29.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-09T17:00:10.000Z","updated_at":"2024-10-10T02:54:49.000Z","dependencies_parsed_at":"2022-09-11T20:20:48.325Z","dependency_job_id":null,"html_url":"https://github.com/npm/npm-remote-ls","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fnpm-remote-ls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fnpm-remote-ls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fnpm-remote-ls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fnpm-remote-ls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npm","download_url":"https://codeload.github.com/npm/npm-remote-ls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235418848,"owners_count":18987135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-09T14:01:43.406Z","updated_at":"2025-10-07T03:31:11.769Z","avatar_url":"https://github.com/npm.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# npm-remote-ls\n\n[![Build Status](https://travis-ci.org/npm/npm-remote-ls.png)](https://travis-ci.org/npm/npm-remote-ls)\n[![Coverage Status](https://coveralls.io/repos/npm/npm-remote-ls/badge.svg?branch=)](https://coveralls.io/r/npm/npm-remote-ls?branch=master)\n[![NPM version](https://img.shields.io/npm/v/npm-remote-ls.svg)](https://www.npmjs.com/package/npm-remote-ls)\n[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)\n\nExamine a package's dependency graph before you install it.\n\n## Installation\n\n```bash\nnpm install npm-remote-ls -g\n```\n\n## Usage\n\n### Listing Package Dependencies\n\n```\nnpm-remote-ls sha@1.2.4\n\n└─ sha@1.2.4\n   ├─ readable-stream@1.0.27-1\n   │  ├─ isarray@0.0.1\n   │  ├─ string_decoder@0.10.25\n   │  ├─ inherits@2.0.1\n   │  └─ core-util-is@1.0.1\n   └─ graceful-fs@3.0.2\n```\n\n### Help!\n\nThere are various command line flags you can toggle for `npm-remote-ls`, for\ndetails run:\n\n```bash\nnpm-remote-ls --help\n```\n\n## API\n\n**Return dependency graph for `latest` version:**\n\n```javascript\nvar ls = require('npm-remote-ls').ls;\n\nls('grunt', 'latest', function(obj) {\n  console.log(obj);\n});\n```\n\n**Return dependency graph for specific version:**\n\n```javascript\nvar ls = require('npm-remote-ls').ls;\n\nls('grunt', '0.1.0', function(obj) {\n  console.log(obj);\n});\n```\n\n**Return a flattened list of dependencies:**\n\n```javascript\nvar ls = require('npm-remote-ls').ls;\n\nls('grunt', '0.1.0', true, function(obj) {\n  console.log(obj);\n});\n```\n\n**Configure to only return production dependencies:**\n\n```javascript\nvar ls = require('npm-remote-ls').ls\nvar config = require('npm-remote-ls').config\n\nconfig({\n  development: false,\n  optional: false\n})\n\nls('yargs', 'latest', true, function (obj) {\n  console.log(obj)\n})\n```\n\n**Configure to return peer dependencies:**\n\n```javascript\nvar ls = require('npm-remote-ls').ls\nvar config = require('npm-remote-ls').config\n\nconfig({\n  development: true,\n  peer: true\n})\n\nls('grunt-contrib-coffee', 'latest', true, function (obj) {\n  console.log(obj)\n})\n```\n\n## License\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Fnpm-remote-ls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpm%2Fnpm-remote-ls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Fnpm-remote-ls/lists"}