open-index/open-npm huggingface dataset:
npm package: @mike_f/list-deps
Description: List dependencies referenced from a root file
Author: Mike Farquhar
Latest version: 0.1.5

# list-deps

Naive CLI/method to list dependencies referenced in source files.

Install:
```bash
# Install for CLI use:
npm i -g @mike_f/list-deps

# Install for node use:
npm i -D @mike_f/list-deps

# CLI example looking in JS and JSX files.
list-deps ./path/to/root.js --extensions js jsx
```

Usage in JavaScript:
```javascript
const listDeps = require('@mike_f/list-deps');
const { skippedModules, dependencies } = listDeps('./path/to/root.js', ['js', 'jsx']);
```