touch-cli-win
v1.0.0
Published
A Simple Cli to create files easily like linux.
Readme
Touch
A Simple Cli to create files easily like linux.
Why this package
I made this package to add touch command in windows. Because, I struggle a lots whenever I want to create a file in windows at cmd. This package won't cover all features of touch linux command. It can only create files.
There is a great package with similar goal touch-win. That package is so much awesome. I would recommend you to give it a try.
The Reason I made this is because I wanted a minimalist tool. It has more features than this package. The Main thing I didn't like in that package is We need to type touch-win instead of touch. I wanted the same feel of linux commands.
Source Code
#! /usr/bin/env node
const fs = require("fs")
const args = process.argv.slice(2);
args.map(file=>{
fs.writeFileSync(file, "");
})
console.log(args)Installation
npm install -g touch-cli-winUsage
touch index.html style.css