react-izon-core
v0.0.4
Published
Analyze React Component dependencies from AST
Downloads
7
Maintainers
Readme
react-izon-core
Analyze Dependency of React Component with AST obtained from @babel/parser
Install
Install with npm
$> npm install react-izon-core
Install with yarn
$> 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()