Novel Personal Mantras

    @rifo/get-ts-imports
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.11 • Public • Published

    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;
    });

    Keywords

    none

    Install

    npm i @rifo/get-ts-imports

    DownloadsWeekly Downloads

    1

    Version

    1.0.11

    License

    MIT

    Unpacked Size

    2.86 kB

    Total Files

    6

    Last publish

    Collaborators

    • ofir.fridman