Code Monkey home page Code Monkey logo

folder-friend's Introduction

Folder Friend  📁 😃

Folder Friend is a CLI tool that analyzes the import relationships and folder structure of a given directory and calculates the necessary file/folder moves and renames needed to align your folder structure with Loom's folder structure guidelines (todo: link). You can then optionally have the CLI carry out these file operations for you.

👶 NOTE THAT FOLDER FRIEND IS CURRENTLY IN ITS INFANCY AND MAY SPIT-UP OR POOP ON YOU - USE AT YOUR OWN RISK!

Installation

For now (until we publish this to npm):

  1. Clone this repo
  2. Install dependencies
  3. Run pnpm build
  4. Run pnpm link from the project root

(At this point, you can run which folder-friend to confirm that the binary is available globally.)

You can now run npx folder-friend or just folder-friend from anywhere on your system!

Usage

npx folder-friend [--target_dir <path>] [--yolo <boolean>]
  • --target_dir (optional): The directory to operate on. Defaults to the current working directory.
  • --yolo (optional): If false, the CLI will only print the file operations it would perform without actually performing them. You will then have the option to confirm or cancel the file operations. If true, the changes will be made immediately. Defaults to false.

Help

To see a full overview of the CLI, run:

npx folder-friend --help

folder-friend's People

Contributors

granmoe avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.