A Command-Line Interface (CLI) tool for performing various file operations using Node.js. This tool allows you to create, read, write, edit, count words and lines, and delete files from the terminal.
npm install cdl-vinaybash
git clone https://github.com/Rajput-vinay/file-operations-cli.git
2. Navigate to the project directory:
`bash
cd file-operations-cli
3. Install the dependencies:
`bash
npm install
4. Run in terminal:
`bash
npm link
Usage
You can use the CLI tool by running the following commands:
$3
`bash
cdl-vinay countWord
$3
`bash
cdl-vinay createFile
$3
`bash
cdl-vinay countLine
$3
`bash
cdl-vinay readFile
$3
`bash
cdl-vinay writeFile
$3
`bash
cdl-vinay editFile
###Delete File
`bash
cdl-vinay deleteFile
#Example
To count the number of words in a file named example.txt:
``bash