# that-depends-js

> [![Build Status](https://travis-ci.org/reergymerej/that-depends-js.svg?branch=master)](https://travis-ci.org/reergymerej/that-depends-js)

Latest version **1.0.1** (published 2018-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install that-depends-js
pnpm add that-depends-js
yarn add that-depends-js
bun add that-depends-js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-04-07 |
| First published | 2018-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jeremy Greer |
| Maintainers | reergymerej |

## Links

- npm: https://www.npmjs.com/package/that-depends-js
- npm.io page: https://npm.io/package/that-depends-js

## Recent versions

- 1.0.1 (latest) — 2018-04-07
- 1.0.0 — 2018-04-07

## README

# that-depends-js

[![Build Status](https://travis-ci.org/reergymerej/that-depends-js.svg?branch=master)](https://travis-ci.org/reergymerej/that-depends-js)

Reads in JS, returns the imported/required file paths.

## Usage

```js
// foo.js
import x from 'z'
import a from 'a'
import otherA from './a'
```

```js
import thatDependsJS from 'that-depends-js'

const fooSource = fs.readFileSync('foo.js', 'utf8')
const dependenciesOfFoo = thatDependsJS(fooSource)

// returns ['./a', 'a', 'z']
```

---
_Source: https://npm.io/package/that-depends-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
