A CLI tool to generate barrels with ease, efficiency, and intelligence

Overview

JS-Barrels

A CLI tool to generate barrels with ease, efficiency, and intelligence

Usage

npx js-barrels -d ./folder/to/generate/barrels/for

Options

-d, --dir      Directory to generate barrels for           [string] [required]
-w, --watch    Watch directory and update barrels                    [boolean]
-e, --ext      Extension to create the barrel file with, auto-detected by
               default                                                [string]

Motivation

After developing a Next.js project with many folders and files, I wanted to create barrels to easily use them without clutter in other files and directories, essentially trying to group imports cleanly with the barrels. After trying many different CLI solutions, I concluded that many of them did not fit my use case of default exports combined with named exports, so I set out to make my own CLI which supported both, hence the creation of this tool.

Pros and Cons

Pros

  • Generates barrels for all exports including default and named
  • Simplistic nature with only two CLI arguments
  • Includes a watch mode to detect file changes and regenerate barrels accordingly
  • Lightweight
  • Generates barrels for nested directories
You might also like...

▶ A tool that helps developers to translate JSON to different languages with ease

▶ A tool that helps developers to translate JSON to different languages with ease

JSON translator Link 🔗 : https://json-translator.vercel.app/ 👉 The information you have entered will not be kept on this site. 👉 Translation is usi

Mar 6, 2022

🦄 A CLI tool to quickly generate Next.js components

🦄 A CLI tool to quickly generate Next.js components

🦄 nextrate A CLI tool for quickly generating Next.js components. ✨ Features Automatically add the file type to the component name using the folder na

Aug 19, 2022

To Do List Application Organize your tasks with simple add and delete functionality. Organize your items with ease.

      To Do List Application Organize your tasks with simple add and delete functionality. Organize your items with ease.

TODO-LIST To Do List Application Organize your tasks with simple add and delete functionality. Organize your items with ease. Additional description a

Jul 22, 2022

A Technical Blogging Website that utilizes Notion as a CMS for ease of modification with the help of the notion-API & whose content has been rendered with next-js and react-notion-x

A Technical Blogging Website that utilizes Notion as a CMS for ease of modification with the help of the notion-API & whose content has been rendered with next-js and react-notion-x

GDSC MCE Blogs This repo is what GDSC MCE uses to power their blogging website gdsc-mce-blogs. It uses Notion as a CMS, fetching content from Notion a

Dec 16, 2022

HanAssist - Utilities to ease Chinese variant handling in user scripts and gadgets.

HanAssist 代码文档 HanAssist 是帮助中文维基百科及其他 MediaWiki 网站上的用户脚本和小工具更优雅地处理中文变体消息的实用程序。 本程序的目标是取代wgULS()和wgUVS()小工具。 HanAssist.localize( { hans: '一天一苹果,医生远离我。'

Oct 29, 2022

Create content rich websites with ease - built on next.js, contentlayer and tailwindcss

Create content rich websites with ease - built on next.js, contentlayer and tailwindcss

Pliny Note: Pliny is currently in alpha. Expect breaking changes. Pliny makes creating, editing and publishing markdown content easy and simple. It is

Dec 30, 2022

⚖️ Limit an async function's concurrency with ease!

limit-concur Limit an async function's concurrency with ease! Install $ npm i limit-concur Usage import got from 'got' import limitConcur from 'limit-

Apr 8, 2022

Showcase your skills on your Github readme or resumé with ease ✨

Showcase your skills on your Github readme or resumé with ease ✨

Showcase your skills on your GitHub or resumé with ease! Powered by Cloudflare Workers ⚡ Docs Example Specifying Icons Themed Icons Icons Per Line Cen

Dec 31, 2022
Owner
Snehil K
Hi! My name is Snehil, and I'm an aspiring programmer. I especially love full stack web development. I'm also a graphic designer, drummer, actor, and more!
Snehil K
This project focuses on increasing the efficiency of a hospital's patient waitlist by creating an algorithm to generate an ordered list of 10 patients with the highest chance of accepting an appointment offer.

Patients-Facility Technical Interview Requirements This application was built on Node.JS v12.14. It has not been tested on other versions. You will al

Rwubakwanayo Olivier 4 Mar 20, 2023
Infoooze is an Open-source intelligence (OSINT) tool in NodeJs.

Infoooze is an Open-source intelligence (OSINT) tool in NodeJs. It provides various modules that allow efficient searches.

Prateek Singh 259 Jan 4, 2023
A CLI tool to create a NodeJS project with TypeScript CTSP is a CLI tool to make easier to start a new NodeJS project and configure Typescript on it.

CTSP- Create TS Project A CLI tool to create a NodeJS project with TypeScript CTSP is a CLI tool to make easier to start a new NodeJS project and conf

Jean Rodríguez 7 Sep 13, 2022
An implementation of ERC1155D, a record setter for minting and transfer gas efficiency.

ERC1155D An implementation of ERC1155D, a record setter for minting and transfer gas efficiency. This contract is in alpha stage and has not been audi

null 72 Dec 26, 2022
Crawler Crypto using NodeJS for performance with Elasticsearch DB for high efficiency.

Coin crawler - Coingecko version Crawler using NodeJS for performance with Elasticsearch DB for high efficiency. Requirements For development, you wil

Minh.N.Pham 1 Jan 20, 2022
A curated list of projects, research initiatives, videoconferences and articles on artificial intelligence (AI) in Chile.

Artificial Intelligence Chile A curated list of projects, research initiatives, videoconferences and articles on artificial intelligence (AI) in Chile

Juan Francisco 12 Nov 2, 2022
NHS Business Intelligence Platform

Cloud deployment of a Business Intelligence Application Suite, including modules for Population Health Management

Stewart Morgan 4 Aug 8, 2022
RTAA-72, is CVCIO's real-time intelligence dashboard for Twitter

RTAA—72 Target Audience Analysis (TAA), as described by many field manuals such as FM 33-1-1, is the transitional phase where PSYOP planning moves tow

Civic Information Office 9 Nov 29, 2022
pokedev.js is a tool make to help developers get info about a pokemon and use it in any project with ease.

pokedev.js pokedev.js is a tool make to help developers get info about a pokemon and use it in any project with ease. Quick Links pokedev.js Quick Lin

pokedev.js 4 Apr 4, 2022
A tool to check for response status codes with ease

About Archer Archer is an cross-platform tool developed using Nodejs which focuses on the reconnaissance phase of a penetration test. Got a bunch of l

Umair 14 Oct 19, 2022