Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
touch-win
Advanced tools
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!
Install touch-win with your package manager:
npm install -g touch-win
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:
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
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.
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
This project is MIT licensed.
FAQs
A tool that will allow you to use the 'touch' command on steroids to create multiple files using the terminal on any operating system.
We found that touch-win demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.