{"id":21813262,"url":"https://github.com/morficus/license-ls","last_synced_at":"2025-04-13T23:30:44.050Z","repository":{"id":34968927,"uuid":"193263143","full_name":"morficus/license-ls","owner":"morficus","description":"Get a list of licenses used by a projects dependencies ","archived":false,"fork":false,"pushed_at":"2023-03-04T03:58:12.000Z","size":729,"stargazers_count":19,"open_issues_count":8,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T06:03:26.727Z","etag":null,"topics":["inspector","license","license-checking","license-scan","licenses","licenses-detector","list","ls","npm-ls","package","report","reporter","spdx","spdx-license","spdx-licenses"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morficus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-22T17:48:37.000Z","updated_at":"2023-09-07T07:59:55.000Z","dependencies_parsed_at":"2024-06-18T23:01:19.215Z","dependency_job_id":"6526daec-68e5-49d3-8718-e9aa3a81d8e5","html_url":"https://github.com/morficus/license-ls","commit_stats":{"total_commits":50,"total_committers":5,"mean_commits":10.0,"dds":"0.30000000000000004","last_synced_commit":"e0577dea89506f2ac3aff437186c7902d657f1fe"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morficus%2Flicense-ls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morficus%2Flicense-ls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morficus%2Flicense-ls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morficus%2Flicense-ls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morficus","download_url":"https://codeload.github.com/morficus/license-ls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248796029,"owners_count":21162892,"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":["inspector","license","license-checking","license-scan","licenses","licenses-detector","list","ls","npm-ls","package","report","reporter","spdx","spdx-license","spdx-licenses"],"created_at":"2024-11-27T14:28:15.395Z","updated_at":"2025-04-13T23:30:43.981Z","avatar_url":"https://github.com/morficus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# License List\nList licenses for installed packages.  \n\n![npm](https://img.shields.io/npm/v/license-ls.svg)\n[![Maintainability](https://api.codeclimate.com/v1/badges/dbc11e7aa9d037034303/maintainability)](https://codeclimate.com/github/morficus/license-ls/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/dbc11e7aa9d037034303/test_coverage)](https://codeclimate.com/github/morficus/license-ls/test_coverage)\n[![Build Status](https://travis-ci.org/morficus/license-ls.svg?branch=master)](https://travis-ci.org/morficus/license-ls)\n\n## Features\n* JSON, CSV, XML or ASCII table output\n* Specify the package depth\n* Ability to limit list to only dev or only production packages\n* Support for converting SPDX expressions in to their full names\n* Specify what properties should be included in the out\n* Can be used programmatically for maximum flex- and extensibility\n\n## Options\nYou can always run `npx license-ls --help` to get this documentation\n\n* `--help`: show help\n* `--format`: output format. json, table, xml or csv (defaults to table)\n* `--include`: List of properties to include\n* `--depth`:  Max display depth of the dependency tree\n* `--production, --prod`:   Display only the dependency tree for packages in dependencies\n* `--development, --dev`:  Display only the dependency tree for packages in devDependencies\n* `--global`:  List packages in the global install prefix instead of in the current project\n* `--link`:  Display only dependencies which are linked \n\n### CSV specific options \n* `--csv.delimiter`: character the use as the value separator (defaults to `,`)\n\n### Table specific options\n* `--table.header.*`: changes the default header name for table output (ie: `--header.name=Module`)\n  * Here is a list of possible values for `*`: `id`, `name`, `version`, `license`, `homepage`, `repository`, `author`, `dependencyLevel`, `description`\n\n### XML specific options\n* `--xml.asAttrs`: uses each package property as the XML tag element, with the package name as the content (see \"XML Output #2\" in the Examples section) \n\n## Examples\nGet a list of all dependency packages\n```bash\nnpx license-ls\n```\n\nGet a list of only direct dependencies\n```bash\nnpx license-ls --depth=0\n```\n\nGet a list of only direct production dependencies\n```bash\nnpx license-ls --depth=0 --prod\n```\n\nGet a list of only direct production dependencies, only show directory path, name and license\n```bash\nnpx license-ls --depth=0 --prod --include=path,name,license\n```\n\nGet a list of all dependency packages in JSON format\n```bash\nnpx license-ls --format=json\n```\n\nSave results to a file\n```bash\nnpx license-ls --depth=0 \u003e report.txt\n```\n\nSet some custom table headers\n```bash\nnpx license-ls --depth=0 --table.header.name=Module --table.header.repository=\"Repo URL\" --table.header.author=\"Who made this?\"\n```\n\n## Sample Output formats\nAll of the following samples were generated by running the relevant command against this project.   \n\n### JSON output\n```npx license-ls --format=json --depth=0```\n```json\n [\n   {\n     \"id\": 0,\n     \"name\": \"ava\",\n     \"version\": \"2.1.0\",\n     \"license\": \"MIT License (MIT)\",\n     \"repository\": \"git+https://github.com/avajs/ava.git\",\n     \"homepage\": \"https://avajs.dev\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/ava\",\n     \"dependencyLevel\": \"development\"\n   },\n   {\n     \"id\": 1,\n     \"name\": \"debug\",\n     \"version\": \"4.1.1\",\n     \"license\": \"MIT License (MIT)\",\n     \"repository\": \"git://github.com/visionmedia/debug.git\",\n     \"author\": \"TJ Holowaychuk\",\n     \"homepage\": \"https://github.com/visionmedia/debug#readme\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/debug\",\n     \"dependencyLevel\": \"development\"\n   },\n   {\n     \"id\": 2,\n     \"name\": \"json2csv\",\n     \"version\": \"4.5.1\",\n     \"license\": \"MIT License (MIT)\",\n     \"repository\": \"git+https://github.com/zemirco/json2csv.git\",\n     \"author\": \"Mirco Zeiss\",\n     \"homepage\": \"https://github.com/zemirco/json2csv#readme\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/json2csv\",\n     \"dependencyLevel\": \"production\"\n   },\n   {\n     \"id\": 3,\n     \"name\": \"jstoxml\",\n     \"version\": \"1.5.0\",\n     \"license\": \"MIT License (MIT)\",\n     \"repository\": \"git://github.com/davidcalhoun/jstoxml.git\",\n     \"author\": \"David Calhoun\",\n     \"homepage\": \"http://github.com/davidcalhoun/jstoxml\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/jstoxml\",\n     \"dependencyLevel\": \"production\"\n   },\n   {\n     \"id\": 4,\n     \"name\": \"libnpm\",\n     \"version\": \"2.0.1\",\n     \"license\": \"ISC License (ISC)\",\n     \"repository\": \"git+https://github.com/npm/libnpm.git\",\n     \"author\": \"Kat Marchán\",\n     \"homepage\": \"https://github.com/npm/libnpm#readme\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/libnpm\",\n     \"dependencyLevel\": \"production\"\n   },\n   {\n     \"id\": 5,\n     \"name\": \"nyc\",\n     \"version\": \"14.1.1\",\n     \"license\": \"ISC License (ISC)\",\n     \"repository\": \"git+ssh://git@github.com/istanbuljs/nyc.git\",\n     \"author\": \"Ben Coe\",\n     \"homepage\": \"https://github.com/istanbuljs/nyc#readme\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/nyc\",\n     \"dependencyLevel\": \"production\"\n   },\n   {\n     \"id\": 6,\n     \"name\": \"ora\",\n     \"version\": \"3.4.0\",\n     \"license\": \"MIT License (MIT)\",\n     \"repository\": \"git+https://github.com/sindresorhus/ora.git\",\n     \"author\": \"Sindre Sorhus\",\n     \"homepage\": \"https://github.com/sindresorhus/ora#readme\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/ora\",\n     \"dependencyLevel\": \"production\"\n   },\n   {\n     \"id\": 7,\n     \"name\": \"read-package-tree\",\n     \"version\": \"5.2.2\",\n     \"license\": \"ISC License (ISC)\",\n     \"repository\": \"git+https://github.com/npm/read-package-tree.git\",\n     \"author\": \"Isaac Z. Schlueter\",\n     \"homepage\": \"https://github.com/npm/read-package-tree\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/read-package-tree\",\n     \"dependencyLevel\": \"production\"\n   },\n   {\n     \"id\": 8,\n     \"name\": \"spdx-expression-parse\",\n     \"version\": \"3.0.0\",\n     \"license\": \"MIT License (MIT)\",\n     \"repository\": \"git+https://github.com/jslicense/spdx-expression-parse.js.git\",\n     \"author\": \"Kyle E. Mitchell\",\n     \"homepage\": \"https://github.com/jslicense/spdx-expression-parse.js#readme\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/spdx-expression-parse\",\n     \"dependencyLevel\": \"production\"\n   },\n   {\n     \"id\": 9,\n     \"name\": \"spdx-license-list\",\n     \"version\": \"6.0.0\",\n     \"license\": \"Creative Commons Zero v1.0 Universal (CC0-1.0)\",\n     \"repository\": \"git+https://github.com/sindresorhus/spdx-license-list.git\",\n     \"author\": \"Sindre Sorhus\",\n     \"homepage\": \"https://github.com/sindresorhus/spdx-license-list#readme\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/spdx-license-list\",\n     \"dependencyLevel\": \"production\"\n   },\n   {\n     \"id\": 10,\n     \"name\": \"table\",\n     \"version\": \"5.4.1\",\n     \"license\": \"BSD 3-Clause \\\"New\\\" or \\\"Revised\\\" License (BSD-3-Clause)\",\n     \"repository\": \"git+https://github.com/gajus/table.git\",\n     \"author\": \"Gajus Kuizinas\",\n     \"homepage\": \"https://github.com/gajus/table#readme\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/table\",\n     \"dependencyLevel\": \"production\"\n   },\n   {\n     \"id\": 11,\n     \"name\": \"yargs\",\n     \"version\": \"13.2.4\",\n     \"license\": \"MIT License (MIT)\",\n     \"repository\": \"git+https://github.com/yargs/yargs.git\",\n     \"homepage\": \"https://yargs.js.org/\",\n     \"path\": \"/Users/morficus/workspace/license-ls/node_modules/yargs\",\n     \"dependencyLevel\": \"production\"\n   }\n ]\n```\n\n### CSV output\n```npx license-ls --format=csv --depth=0```\n```csv\n\"id\",\"name\",\"version\",\"license\",\"repository\",\"author\",\"homepage\",\"path\",\"dependencyLevel\"\n0,\"ava\",\"2.1.0\",\"MIT License (MIT)\",\"git+https://github.com/avajs/ava.git\",,\"https://avajs.dev\",\"/Users/morficus/workspace/license-ls/node_modules/ava\",\"development\"\n1,\"debug\",\"4.1.1\",\"MIT License (MIT)\",\"git://github.com/visionmedia/debug.git\",\"TJ Holowaychuk\",\"https://github.com/visionmedia/debug#readme\",\"/Users/morficus/workspace/license-ls/node_modules/debug\",\"development\"\n2,\"json2csv\",\"4.5.1\",\"MIT License (MIT)\",\"git+https://github.com/zemirco/json2csv.git\",\"Mirco Zeiss\",\"https://github.com/zemirco/json2csv#readme\",\"/Users/morficus/workspace/license-ls/node_modules/json2csv\",\"production\"\n3,\"jstoxml\",\"1.5.0\",\"MIT License (MIT)\",\"git://github.com/davidcalhoun/jstoxml.git\",\"David Calhoun\",\"http://github.com/davidcalhoun/jstoxml\",\"/Users/morficus/workspace/license-ls/node_modules/jstoxml\",\"production\"\n4,\"libnpm\",\"2.0.1\",\"ISC License (ISC)\",\"git+https://github.com/npm/libnpm.git\",\"Kat Marchán\",\"https://github.com/npm/libnpm#readme\",\"/Users/morficus/workspace/license-ls/node_modules/libnpm\",\"production\"\n5,\"nyc\",\"14.1.1\",\"ISC License (ISC)\",\"git+ssh://git@github.com/istanbuljs/nyc.git\",\"Ben Coe\",\"https://github.com/istanbuljs/nyc#readme\",\"/Users/morficus/workspace/license-ls/node_modules/nyc\",\"production\"\n6,\"ora\",\"3.4.0\",\"MIT License (MIT)\",\"git+https://github.com/sindresorhus/ora.git\",\"Sindre Sorhus\",\"https://github.com/sindresorhus/ora#readme\",\"/Users/morficus/workspace/license-ls/node_modules/ora\",\"production\"\n7,\"read-package-tree\",\"5.2.2\",\"ISC License (ISC)\",\"git+https://github.com/npm/read-package-tree.git\",\"Isaac Z. Schlueter\",\"https://github.com/npm/read-package-tree\",\"/Users/morficus/workspace/license-ls/node_modules/read-package-tree\",\"production\"\n8,\"spdx-expression-parse\",\"3.0.0\",\"MIT License (MIT)\",\"git+https://github.com/jslicense/spdx-expression-parse.js.git\",\"Kyle E. Mitchell\",\"https://github.com/jslicense/spdx-expression-parse.js#readme\",\"/Users/morficus/workspace/license-ls/node_modules/spdx-expression-parse\",\"production\"\n9,\"spdx-license-list\",\"6.0.0\",\"Creative Commons Zero v1.0 Universal (CC0-1.0)\",\"git+https://github.com/sindresorhus/spdx-license-list.git\",\"Sindre Sorhus\",\"https://github.com/sindresorhus/spdx-license-list#readme\",\"/Users/morficus/workspace/license-ls/node_modules/spdx-license-list\",\"production\"\n10,\"table\",\"5.4.1\",\"BSD 3-Clause \"\"New\"\" or \"\"Revised\"\" License (BSD-3-Clause)\",\"git+https://github.com/gajus/table.git\",\"Gajus Kuizinas\",\"https://github.com/gajus/table#readme\",\"/Users/morficus/workspace/license-ls/node_modules/table\",\"production\"\n11,\"yargs\",\"13.2.4\",\"MIT License (MIT)\",\"git+https://github.com/yargs/yargs.git\",,\"https://yargs.js.org/\",\"/Users/morficus/workspace/license-ls/node_modules/yargs\",\"production\"\n```\n\n\n\n### Table output\n```npx license-ls --depth=0```\n```text\n╔═══════╤═══════════════════════╤═════════╤════════════════════════════════════════════════════════╤═══════════════════════════════════════════════════════════════╤════════════════════╤══════════════════════════════════════════════════════════════╤════════════════════════════════════════════════════════════════════════════════╤═════════════════╗\n║ Row # │ Package Name          │ Version │ License                                                │ Repository                                                    │ Author             │ Homepage                                                     │                                                                                │ Dependency type ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 0     │ ava                   │ 2.1.0   │ MIT License (MIT)                                      │ git+https://github.com/avajs/ava.git                          │                    │ https://avajs.dev                                            │ /Users/morficus/workspace/license-ls/node_modules/ava                   │ development     ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 1     │ debug                 │ 4.1.1   │ MIT License (MIT)                                      │ git://github.com/visionmedia/debug.git                        │ TJ Holowaychuk     │ https://github.com/visionmedia/debug#readme                  │ /Users/morficus/workspace/license-ls/node_modules/debug                 │ development     ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 2     │ json2csv              │ 4.5.1   │ MIT License (MIT)                                      │ git+https://github.com/zemirco/json2csv.git                   │ Mirco Zeiss        │ https://github.com/zemirco/json2csv#readme                   │ /Users/morficus/workspace/license-ls/node_modules/json2csv              │ production      ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 3     │ jstoxml               │ 1.5.0   │ MIT License (MIT)                                      │ git://github.com/davidcalhoun/jstoxml.git                     │ David Calhoun      │ http://github.com/davidcalhoun/jstoxml                       │ /Users/morficus/workspace/license-ls/node_modules/jstoxml               │ production      ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 4     │ libnpm                │ 2.0.1   │ ISC License (ISC)                                      │ git+https://github.com/npm/libnpm.git                         │ Kat Marchán        │ https://github.com/npm/libnpm#readme                         │ /Users/morficus/workspace/license-ls/node_modules/libnpm                │ production      ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 5     │ nyc                   │ 14.1.1  │ ISC License (ISC)                                      │ git+ssh://git@github.com/istanbuljs/nyc.git                   │ Ben Coe            │ https://github.com/istanbuljs/nyc#readme                     │ /Users/morficus/workspace/license-ls/node_modules/nyc                   │ production      ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 6     │ ora                   │ 3.4.0   │ MIT License (MIT)                                      │ git+https://github.com/sindresorhus/ora.git                   │ Sindre Sorhus      │ https://github.com/sindresorhus/ora#readme                   │ /Users/morficus/workspace/license-ls/node_modules/ora                   │ production      ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 7     │ read-package-tree     │ 5.2.2   │ ISC License (ISC)                                      │ git+https://github.com/npm/read-package-tree.git              │ Isaac Z. Schlueter │ https://github.com/npm/read-package-tree                     │ /Users/morficus/workspace/license-ls/node_modules/read-package-tree     │ production      ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 8     │ spdx-expression-parse │ 3.0.0   │ MIT License (MIT)                                      │ git+https://github.com/jslicense/spdx-expression-parse.js.git │ Kyle E. Mitchell   │ https://github.com/jslicense/spdx-expression-parse.js#readme │ /Users/morficus/workspace/license-ls/node_modules/spdx-expression-parse │ production      ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 9     │ spdx-license-list     │ 6.0.0   │ Creative Commons Zero v1.0 Universal (CC0-1.0)         │ git+https://github.com/sindresorhus/spdx-license-list.git     │ Sindre Sorhus      │ https://github.com/sindresorhus/spdx-license-list#readme     │ /Users/morficus/workspace/license-ls/node_modules/spdx-license-list     │ production      ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 10    │ table                 │ 5.4.1   │ BSD 3-Clause \"New\" or \"Revised\" License (BSD-3-Clause) │ git+https://github.com/gajus/table.git                        │ Gajus Kuizinas     │ https://github.com/gajus/table#readme                        │ /Users/morficus/workspace/license-ls/node_modules/table                 │ production      ║\n╟───────┼───────────────────────┼─────────┼────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┼─────────────────╢\n║ 11    │ yargs                 │ 13.2.4  │ MIT License (MIT)                                      │ git+https://github.com/yargs/yargs.git                        │                    │ https://yargs.js.org/                                        │ /Users/morficus/workspace/license-ls/node_modules/yargs                 │ production      ║\n╚═══════╧═══════════════════════╧═════════╧════════════════════════════════════════════════════════╧═══════════════════════════════════════════════════════════════╧════════════════════╧══════════════════════════════════════════════════════════════╧════════════════════════════════════════════════════════════════════════════════╧═════════════════╝\n```\n\n### XML Output #1\n```npx license-ls --depth=0 --format=xml```\n```xml\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e0\u003c/id\u003e\n        \u003cname\u003eava\u003c/name\u003e\n        \u003cversion\u003e2.1.0\u003c/version\u003e\n        \u003clicense\u003eMIT License (MIT)\u003c/license\u003e\n        \u003crepository\u003egit+https://github.com/avajs/ava.git\u003c/repository\u003e\n        \u003cauthor/\u003e\n        \u003chomepage\u003ehttps://avajs.dev\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/ava\u003c/path\u003e\n        \u003cdependencyLevel\u003edevelopment\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e1\u003c/id\u003e\n        \u003cname\u003edebug\u003c/name\u003e\n        \u003cversion\u003e4.1.1\u003c/version\u003e\n        \u003clicense\u003eMIT License (MIT)\u003c/license\u003e\n        \u003crepository\u003egit://github.com/visionmedia/debug.git\u003c/repository\u003e\n        \u003cauthor\u003eTJ Holowaychuk\u003c/author\u003e\n        \u003chomepage\u003ehttps://github.com/visionmedia/debug#readme\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/debug\u003c/path\u003e\n        \u003cdependencyLevel\u003edevelopment\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e2\u003c/id\u003e\n        \u003cname\u003ejson2csv\u003c/name\u003e\n        \u003cversion\u003e4.5.1\u003c/version\u003e\n        \u003clicense\u003eMIT License (MIT)\u003c/license\u003e\n        \u003crepository\u003egit+https://github.com/zemirco/json2csv.git\u003c/repository\u003e\n        \u003cauthor\u003eMirco Zeiss\u003c/author\u003e\n        \u003chomepage\u003ehttps://github.com/zemirco/json2csv#readme\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/json2csv\u003c/path\u003e\n        \u003cdependencyLevel\u003eproduction\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e3\u003c/id\u003e\n        \u003cname\u003ejstoxml\u003c/name\u003e\n        \u003cversion\u003e1.5.0\u003c/version\u003e\n        \u003clicense\u003eMIT License (MIT)\u003c/license\u003e\n        \u003crepository\u003egit://github.com/davidcalhoun/jstoxml.git\u003c/repository\u003e\n        \u003cauthor\u003eDavid Calhoun\u003c/author\u003e\n        \u003chomepage\u003ehttp://github.com/davidcalhoun/jstoxml\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/jstoxml\u003c/path\u003e\n        \u003cdependencyLevel\u003eproduction\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e4\u003c/id\u003e\n        \u003cname\u003elibnpm\u003c/name\u003e\n        \u003cversion\u003e2.0.1\u003c/version\u003e\n        \u003clicense\u003eISC License (ISC)\u003c/license\u003e\n        \u003crepository\u003egit+https://github.com/npm/libnpm.git\u003c/repository\u003e\n        \u003cauthor\u003eKat Marchán\u003c/author\u003e\n        \u003chomepage\u003ehttps://github.com/npm/libnpm#readme\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/libnpm\u003c/path\u003e\n        \u003cdependencyLevel\u003eproduction\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e5\u003c/id\u003e\n        \u003cname\u003enyc\u003c/name\u003e\n        \u003cversion\u003e14.1.1\u003c/version\u003e\n        \u003clicense\u003eISC License (ISC)\u003c/license\u003e\n        \u003crepository\u003egit+ssh://git@github.com/istanbuljs/nyc.git\u003c/repository\u003e\n        \u003cauthor\u003eBen Coe\u003c/author\u003e\n        \u003chomepage\u003ehttps://github.com/istanbuljs/nyc#readme\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/nyc\u003c/path\u003e\n        \u003cdependencyLevel\u003eproduction\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e6\u003c/id\u003e\n        \u003cname\u003eora\u003c/name\u003e\n        \u003cversion\u003e3.4.0\u003c/version\u003e\n        \u003clicense\u003eMIT License (MIT)\u003c/license\u003e\n        \u003crepository\u003egit+https://github.com/sindresorhus/ora.git\u003c/repository\u003e\n        \u003cauthor\u003eSindre Sorhus\u003c/author\u003e\n        \u003chomepage\u003ehttps://github.com/sindresorhus/ora#readme\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/ora\u003c/path\u003e\n        \u003cdependencyLevel\u003eproduction\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e7\u003c/id\u003e\n        \u003cname\u003eread-package-tree\u003c/name\u003e\n        \u003cversion\u003e5.2.2\u003c/version\u003e\n        \u003clicense\u003eISC License (ISC)\u003c/license\u003e\n        \u003crepository\u003egit+https://github.com/npm/read-package-tree.git\u003c/repository\u003e\n        \u003cauthor\u003eIsaac Z. Schlueter\u003c/author\u003e\n        \u003chomepage\u003ehttps://github.com/npm/read-package-tree\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/read-package-tree\u003c/path\u003e\n        \u003cdependencyLevel\u003eproduction\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e8\u003c/id\u003e\n        \u003cname\u003espdx-expression-parse\u003c/name\u003e\n        \u003cversion\u003e3.0.0\u003c/version\u003e\n        \u003clicense\u003eMIT License (MIT)\u003c/license\u003e\n        \u003crepository\u003egit+https://github.com/jslicense/spdx-expression-parse.js.git\u003c/repository\u003e\n        \u003cauthor\u003eKyle E. Mitchell\u003c/author\u003e\n        \u003chomepage\u003ehttps://github.com/jslicense/spdx-expression-parse.js#readme\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/spdx-expression-parse\u003c/path\u003e\n        \u003cdependencyLevel\u003eproduction\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e9\u003c/id\u003e\n        \u003cname\u003espdx-license-list\u003c/name\u003e\n        \u003cversion\u003e6.0.0\u003c/version\u003e\n        \u003clicense\u003eCreative Commons Zero v1.0 Universal (CC0-1.0)\u003c/license\u003e\n        \u003crepository\u003egit+https://github.com/sindresorhus/spdx-license-list.git\u003c/repository\u003e\n        \u003cauthor\u003eSindre Sorhus\u003c/author\u003e\n        \u003chomepage\u003ehttps://github.com/sindresorhus/spdx-license-list#readme\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/spdx-license-list\u003c/path\u003e\n        \u003cdependencyLevel\u003eproduction\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e10\u003c/id\u003e\n        \u003cname\u003etable\u003c/name\u003e\n        \u003cversion\u003e5.4.1\u003c/version\u003e\n        \u003clicense\u003eBSD 3-Clause \u0026quot;New\u0026quot; or \u0026quot;Revised\u0026quot; License (BSD-3-Clause)\u003c/license\u003e\n        \u003crepository\u003egit+https://github.com/gajus/table.git\u003c/repository\u003e\n        \u003cauthor\u003eGajus Kuizinas\u003c/author\u003e\n        \u003chomepage\u003ehttps://github.com/gajus/table#readme\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/table\u003c/path\u003e\n        \u003cdependencyLevel\u003eproduction\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cid\u003e11\u003c/id\u003e\n        \u003cname\u003eyargs\u003c/name\u003e\n        \u003cversion\u003e13.2.4\u003c/version\u003e\n        \u003clicense\u003eMIT License (MIT)\u003c/license\u003e\n        \u003crepository\u003egit+https://github.com/yargs/yargs.git\u003c/repository\u003e\n        \u003cauthor/\u003e\n        \u003chomepage\u003ehttps://yargs.js.org/\u003c/homepage\u003e\n        \u003cpath\u003e/Users/morficus/workspace/license-ls/node_modules/yargs\u003c/path\u003e\n        \u003cdependencyLevel\u003eproduction\u003c/dependencyLevel\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n\n```\n\n### XML Output #2\n```npx license-ls --depth=0 --format=xml --xml.asAttrs```\n```xml\n\u003cdependencies\u003e\n    \u003cdependency id=\"0\" version=\"2.1.0\" license=\"MIT License (MIT)\" repository=\"git+https://github.com/avajs/ava.git\" author=\"\" homepage=\"https://avajs.dev\" path=\"/Users/morficus/workspace/license-ls/node_modules/ava\" dependencyLevel=\"development\"\u003eava\u003c/dependency\u003e\n    \u003cdependency id=\"1\" version=\"4.1.1\" license=\"MIT License (MIT)\" repository=\"git://github.com/visionmedia/debug.git\" author=\"TJ Holowaychuk\" homepage=\"https://github.com/visionmedia/debug#readme\" path=\"/Users/morficus/workspace/license-ls/node_modules/debug\" dependencyLevel=\"development\"\u003edebug\u003c/dependency\u003e\n    \u003cdependency id=\"2\" version=\"4.5.1\" license=\"MIT License (MIT)\" repository=\"git+https://github.com/zemirco/json2csv.git\" author=\"Mirco Zeiss\" homepage=\"https://github.com/zemirco/json2csv#readme\" path=\"/Users/morficus/workspace/license-ls/node_modules/json2csv\" dependencyLevel=\"production\"\u003ejson2csv\u003c/dependency\u003e\n    \u003cdependency id=\"3\" version=\"1.5.0\" license=\"MIT License (MIT)\" repository=\"git://github.com/davidcalhoun/jstoxml.git\" author=\"David Calhoun\" homepage=\"http://github.com/davidcalhoun/jstoxml\" path=\"/Users/morficus/workspace/license-ls/node_modules/jstoxml\" dependencyLevel=\"production\"\u003ejstoxml\u003c/dependency\u003e\n    \u003cdependency id=\"4\" version=\"2.0.1\" license=\"ISC License (ISC)\" repository=\"git+https://github.com/npm/libnpm.git\" author=\"Kat Marchán\" homepage=\"https://github.com/npm/libnpm#readme\" path=\"/Users/morficus/workspace/license-ls/node_modules/libnpm\" dependencyLevel=\"production\"\u003elibnpm\u003c/dependency\u003e\n    \u003cdependency id=\"5\" version=\"14.1.1\" license=\"ISC License (ISC)\" repository=\"git+ssh://git@github.com/istanbuljs/nyc.git\" author=\"Ben Coe\" homepage=\"https://github.com/istanbuljs/nyc#readme\" path=\"/Users/morficus/workspace/license-ls/node_modules/nyc\" dependencyLevel=\"production\"\u003enyc\u003c/dependency\u003e\n    \u003cdependency id=\"6\" version=\"3.4.0\" license=\"MIT License (MIT)\" repository=\"git+https://github.com/sindresorhus/ora.git\" author=\"Sindre Sorhus\" homepage=\"https://github.com/sindresorhus/ora#readme\" path=\"/Users/morficus/workspace/license-ls/node_modules/ora\" dependencyLevel=\"production\"\u003eora\u003c/dependency\u003e\n    \u003cdependency id=\"7\" version=\"5.2.2\" license=\"ISC License (ISC)\" repository=\"git+https://github.com/npm/read-package-tree.git\" author=\"Isaac Z. Schlueter\" homepage=\"https://github.com/npm/read-package-tree\" path=\"/Users/morficus/workspace/license-ls/node_modules/read-package-tree\" dependencyLevel=\"production\"\u003eread-package-tree\u003c/dependency\u003e\n    \u003cdependency id=\"8\" version=\"3.0.0\" license=\"MIT License (MIT)\" repository=\"git+https://github.com/jslicense/spdx-expression-parse.js.git\" author=\"Kyle E. Mitchell\" homepage=\"https://github.com/jslicense/spdx-expression-parse.js#readme\" path=\"/Users/morficus/workspace/license-ls/node_modules/spdx-expression-parse\" dependencyLevel=\"production\"\u003espdx-expression-parse\u003c/dependency\u003e\n    \u003cdependency id=\"9\" version=\"6.0.0\" license=\"Creative Commons Zero v1.0 Universal (CC0-1.0)\" repository=\"git+https://github.com/sindresorhus/spdx-license-list.git\" author=\"Sindre Sorhus\" homepage=\"https://github.com/sindresorhus/spdx-license-list#readme\" path=\"/Users/morficus/workspace/license-ls/node_modules/spdx-license-list\" dependencyLevel=\"production\"\u003espdx-license-list\u003c/dependency\u003e\n    \u003cdependency id=\"10\" version=\"5.4.1\" license=\"BSD 3-Clause \u0026quot;New\u0026quot; or \u0026quot;Revised\u0026quot; License (BSD-3-Clause)\" repository=\"git+https://github.com/gajus/table.git\" author=\"Gajus Kuizinas\" homepage=\"https://github.com/gajus/table#readme\" path=\"/Users/morficus/workspace/license-ls/node_modules/table\" dependencyLevel=\"production\"\u003etable\u003c/dependency\u003e\n    \u003cdependency id=\"11\" version=\"13.2.4\" license=\"MIT License (MIT)\" repository=\"git+https://github.com/yargs/yargs.git\" author=\"\" homepage=\"https://yargs.js.org/\" path=\"/Users/morficus/workspace/license-ls/node_modules/yargs\" dependencyLevel=\"production\"\u003eyargs\u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n## Using as a library\nYou can use all of the same CLI options when using `license-ls` as a module (with the exception of anything that is specific to out format - such as `include` or `format`).  \nWhen using it as a module, the function will always return a promise that resolves to an Array and will include all properties (`['id', 'name', 'version', 'license', 'repository', 'author', 'homepage', 'path', 'dependencyLevel', 'description']`)\n\n```javascript\nconst licenseLs = require('license-ls')\nconst options = {\n    depth: 1,\n    prod: true\n}\n\nlicenseLs(options)\n.then(result =\u003e {\n    // do your thing\n})\n```\n\n## Contributing\nWant a new feature added? Found a bug?\nGo ahead an open [a new issue](https://github.com/morficus/license-ls/issues/new) or feel free to submit a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorficus%2Flicense-ls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorficus%2Flicense-ls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorficus%2Flicense-ls/lists"}