npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

touch-win

v1.1.0

Published

A tool that will allow you to use the 'touch' command on steroids to create multiple files using the terminal on any operating system.

Downloads

9

Readme


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.

📝 License

This project is MIT licensed.