- getImports(dirPath): Promise<ImportStatement[]>
- getImports(dirPath, fliter): Promise<ImportStatement[]>
Parameters
dirPath: string
fliter: ((entry) => boolean)
- (entry): boolean
Returns boolean
- getImports(dirPath, fliter, flatImports): Promise<ImportStatement[]>
Parameters
dirPath: string
fliter: ((entry) => boolean)
- (entry): boolean
Returns boolean
flatImports: true
- getImports(dirPath, fliter, flatImports, ops): Promise<ImportStatement[]>
Parameters
dirPath: string
fliter: ((entry) => boolean)
- (entry): boolean
Returns boolean
flatImports: true
ops: Options
- getImports(dirPath, fliter, flatImports): Promise<FileImport[]>
Parameters
dirPath: string
fliter: ((entry) => boolean)
- (entry): boolean
Returns boolean
flatImports: false
- getImports(dirPath, fliter, flatImports, ops): Promise<FileImport[]>
Parameters
dirPath: string
fliter: ((entry) => boolean)
- (entry): boolean
Returns boolean
flatImports: false
ops: Options
遍历文件夹下所有文件,提取所有import语句