0.6.8 • Published 3 years ago

@nrademacher/file-ops-cli v0.6.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

File Ops CLI

A basic Node.js CLI app for common file operations.

Included so far:

  • Find and replace
  • Prepending
  • Appending

Installation

Project-specific usage

npm install @nrademacher/file-ops-cli

Global usage

npm install -g @nrademacher/file-ops-cli

Usage

file-ops op=<op> <args> <file>

Note: Globbed file specifications (e.g. *.js or src/**/*.js) must be in quotes to prevent automatic glob expansion.

Find and replace

file-ops fnr '<old>' '<new>' <flags> '<file>'
  • --silent, -s
    • Will not log individual processed files to console

Prepend

file-ops prepend '<text>' <flags> '<file>'

Flags

  • --silent, -s
    • Will not log individual processed files to console
  • --unique, -u
    • Will skip file if file already includes input string

Append

file-ops append '<text>' <flags> '<file>'

Flags

  • --silent, -s
    • Will not log individual processed files to console
  • --unique, -u
    • Will skip file if file already includes input string

TODO

  • Add better and prettier logging
  • Add quality-of-life CLI features
    • --help flag
  • Add more operations
  • Write tests
0.6.7

3 years ago

0.6.6

3 years ago

0.6.8

3 years ago

0.6.5

3 years ago

2.5.5

3 years ago

2.4.5

3 years ago

2.3.5

3 years ago

2.2.5

3 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago