🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

newf

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newf

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.

1.0.10
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

export

FAQs

Package last updated on 02 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts