1.1.3 • Published 2 years ago

@nabh/index-ts-creator v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

index-ts-creator

index-ts-creator is a simple utility to create an index.ts files that imports and re-exports all Typescript modules in a directory. For example if you have the following directory structure in your typescript project:

<project-root>
  |
  - src
      Class1.ts
      Class2.ts

Running index-ts-creator src from project root directory will generate index.ts file in the src directory with the following content:

export * from "./Class1";
export * from "./Class2";

Usage

Install globally or locally

npm i [-g] @nabh/index-ts-creator

Create index.ts file in current directory

index-ts-creator

Create index.ts file in directory src

index-ts-creator src
1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago