Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chris-rock/pfixer
https://github.com/chris-rock/pfixer
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/chris-rock/pfixer
- Owner: chris-rock
- License: mit
- Created: 2014-01-31T15:45:02.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-31T21:23:14.000Z (almost 11 years ago)
- Last Synced: 2024-11-11T20:51:44.810Z (about 1 month ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pfixer
A simple cli tool to prefix and postfix content in files. This is espeically useful if you require to paste content into the comments section of source code.
## CLI
Asume you need the content
This is really useful content.
I would like to have this in my source filesJust run
$ prefixer -i -p ' * '
paste your text here
CTRL-CThis will output:
* This is really useful content.
* I would like to have this in my source files## File input
Just run
$ prefixer -f ./myfile -p ' * '
## Help
$ pfixer -h
prefix and postfix text input from cli or files.
Usage: node ./pfixer
Options:
-f, --file Load a file
-i, --input input from cli
-p, --prepend text that will be prepended
-a, --append text that will be appended
-h, --help outputs this help## Installation
npm install -g pfixer
# Author
* Christoph Hartmann
# License
MIT