Code Monkey home page Code Monkey logo

touch-win's Introduction



Touch Win Logo

A tool that will allow you to create multiple files using the terminal in Windows.



If you think touch-win is a support for you, please consider making a small donation so that I can continue to allocate time to do more projects like this. GitHub Sponsor.



Touch Win is a cli program that helps you create various files with a single command, it is inspired by the "touch" command found natively in Linux and Unix based operating systems. Even though there are several programs/packages in npmjs that help you get this command on Windows, I assure you that there is no one like it.

๐Ÿง  Don't forget to give a โญ if you like this project!

โœจ Features

  • It allows you to generate multiple files with a single command.
  • Create folders automatically if they don't exist.
  • Allows you to generate files from a base path.
  • Allows you to generate files from a template.

๐Ÿ“ฆ Installation

Install touch-win with your package manager:

npm install -g touch-win

๐Ÿš€ Usage

touch-win --help
Usage: touch-win [options] [file ...]

Options:
  -a, --author    Show the profile of the author of this package                                    [boolean]
  -b, --base      Base folder to place the file(s)                                                   [string]
  -t, --template  Template to generate files                                                         [string]
  -v, --version   Show version number                                                               [boolean]
  -h, --help      Show help                                                                         [boolean]

Examples:
  touch-win src/bin/cli.js src/helpers/file.js src/helpers/directory.js            Standard use
  touch-win --base src/components/new_component Component.js Component.css         Use with option "base"
  touch-win --template src/components/new_component/Component.[rn] js test.js css  Use with option "template"
  touch-win --template config/webpack.[rn].js build dev common                     Use with option "template"

As you have seen, Touch Win has some options that will help you create a new file:

๐Ÿ‘จโ€๐Ÿ’ป With Base Option:

Forget to write the same path for the files you want to create with this option you can do it.

touch-win --base src/helpers/ alerts.js directory.js file.js

๐Ÿ‘จโ€๐Ÿ’ป With Template Option:

It has a similarity with the "Base" option, the difference arises when you only need small changes in the names or paths of the files.

touch-win --template config/webpack.[rn].js common dev build

Note: It's important to put [rn] where you want it to be replaced by the arguments.

More examples with "template"

Change extensions:

touch-win -t src/components/my_component.[rn] js css

Rename the file:

touch-win -t src/helpers/[rn].js alerts directory file

๐Ÿ“ License

This project is MIT licensed.

touch-win's People

Contributors

zitrocode avatar

Stargazers

 avatar  avatar  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.