@rifo/get-ts-imports
v1.0.11
Published
Get typescript imports from file or directory
Downloads
4
Readme
Library for get typescript imports from file or directory
Installation
npm i @rifo/get-ts-imports -D
Usage
import { extractImports } from '@rifo/get-ts-imports';
extractImports('./src/**/*.ts', (imports: string[]) => {
imports = [...new Set(imports)].filter((imp) => {
return imp.includes('scope');
});
console.log(imports);
return imports;
});