npm.io
0.0.4 • Published 6 years ago

react-izon-core

Licence
MIT
Version
0.0.4
Deps
1
Size
28 kB
Vulns
0
Weekly
0
Stars
1

react-izon-core

Analyze Dependency of React Component with AST obtained from @babel/parser

Install

Install with npm

__CODE_BLOCK_0__gt; npm install react-izon-core

Install with yarn

__CODE_BLOCK_1__gt; yarn add react-izon-core

Usage

import { DependencyChecker } from "react-izon-core"

const checker = new DependencyChecker( analyze_file_path, event => {

  if(event.type === "done"){
    const { dependencies } = event;

    // something
  }

})

checker.check()

License

MIT

Keywords