1.0.10 • Published 2 years ago

newf v1.0.10

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

NewF - newFolder and newFile creator with exports statements

Description:

Helps implement an export/import pattern.

Creates a folder. Inside that folder, it creates a file and an index file. It exports the new file from the sibling index. It will also export the new folder from the current index.

How it works

Prompts you with:

  • Enter the new folder name:

  • Enter the file name with it's file extension:

Then it:

  • Creates a new folder with your new file and an index file

  • Adds export * from './<fileName>' to the new index and export * from './<folderName> to the current directories index (if it is not found, it will be created).

From:

│
└── index

To:

├── <folderName>
│   ├── <fileName>
│   └── index
└── index

Usage

Install globally or use with npx :

npm i -g newf

npx newf
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.10

2 years ago

2021.1.3

3 years ago

2021.1.2

3 years ago

2020.2.1

3 years ago

2020.1.18

4 years ago

2020.1.17

4 years ago

2020.1.13

4 years ago

2020.1.11

4 years ago

2020.1.10

4 years ago

2020.1.6

4 years ago

2020.1.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago