2.0.4 • Published 7 years ago

folder-module v2.0.4

Weekly downloads
394
License
MIT
Repository
github
Last release
7 years ago

Folder Modules

Usage

folder-module <input-directory-name>

Or specify a file:

folder-module <input-directory-name> <out-file>

Info

folder-module is a tiny utility for turning a folder of default exports into a single file of exports of the default of each of the individual files within the folder

For example a folder foo/ with files a.js, b.js and default.js will generate the file ./foo.js:

export { default as a } from "./foo/a.js"
export { default as b } from "./foo/b.js"
export { default } from "./foo/default.js"

You can also specify a filename and paths will be resolved to that filename e.g. For the above with an out file name ./bar/baz/foo.js you'll get:

export { default as a } from "../../foo/a.js"
export { default as b } from "../../foo/b.js"
export { default } from "../../foo/default.js"
2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago