import-scan
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

import-scan

npm Build status codecov Bundle size Install size Code style: Prettier Donate

Tiny import scanner

Features

  • string literals only
  • supports import statements, require() calls, and import() calls
  • avoids several edge cases (see the tests)

Usage

import {importScan} from 'import-scan'

let imported = importScan(code)

Readme

Keywords

none

Package Sidebar

Install

npm i import-scan

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

4.24 kB

Total Files

5

Last publish

Collaborators

  • aleclarson