@ccorcos/autoindex
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Autoindex Code Generator

Create autoindex.ts files throughout your codebase and generate an index file that exports all of the siblings.

Getting Started

npm install -g @ccorcos/autoindex

Given the following directory:

src/
	autoindex.ts
	hello.ts
	world.ts

Then run autoindex src.

And src/autoindex.ts will look like:

import * as hello from "./hello"
import * as world from "./world"

export {
	hello,
	world,
}

You can also watch as part of your build system.

autoindex src --watch

Readme

Keywords

none

Package Sidebar

Install

npm i @ccorcos/autoindex

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

11.7 kB

Total Files

8

Last publish

Collaborators

  • ccorcos