# qw-find-imports

> Find require and import dynamic-import files of JavaScript file by ast

Latest version **1.1.7** (published 2018-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install qw-find-imports
pnpm add qw-find-imports
yarn add qw-find-imports
bun add qw-find-imports
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2018-01-15 |
| First published | 2017-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jingfeng_quietwind@163.com |
| Maintainers | jingfeng |

## Links

- npm: https://www.npmjs.com/package/qw-find-imports
- Repository: https://github.com/QuietWind/find-imports
- Homepage: https://github.com/QuietWind/find-imports#readme
- Issues: https://github.com/QuietWind/find-imports/issues
- npm.io page: https://npm.io/package/qw-find-imports

## Dependencies (5)

- [colors](https://npm.io/package/colors.md) ^1.1.2
- [babylon](https://npm.io/package/babylon.md) ^6.18.0
- [data-store](https://npm.io/package/data-store.md) ^1.0.0
- [typescript](https://npm.io/package/typescript.md) ^2.2.1
- [babel-traverse](https://npm.io/package/babel-traverse.md) ^6.26.0

## Recent versions

- 1.1.7 (latest) — 2018-01-15
- 1.1.5 — 2017-12-30
- 1.1.4 — 2017-12-30
- 1.1.3 — 2017-12-30

## README

# find-imports

Find  require and import dynamic-import files of JavaScript file by ast

## Feature

1. find imports by filename
1. support dynamic import
1. support files `js` `jsx` `ts` `tsx`
1. find imports files and child by entry file, eg: webpack entry


## Usage

Install package `npm install qw-find-imports`

``` ts

import { findImports } from "qw-find-imports";

const strs2 = findImports(
  "XXXXXXXX/index.js",
  {
    findChild: true,
    log: false,
    baseUrl: ["XXXXXXXX"]
  }
);

console.log(JSON.stringify(strs2, null, 2));

```

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