Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanusart/mkhere
Command line utility to create files based on predefined templates
https://github.com/sanusart/mkhere
Last synced: 3 months ago
JSON representation
Command line utility to create files based on predefined templates
- Host: GitHub
- URL: https://github.com/sanusart/mkhere
- Owner: sanusart
- License: mit
- Created: 2014-03-29T23:05:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-05T07:17:25.000Z (over 9 years ago)
- Last Synced: 2024-10-20T13:31:12.242Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 250 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mkhere
Command line utility used to create files based on pre-defined templates
[![NPM](https://nodei.co/npm/mkhere.png)](https://nodei.co/npm/mkhere/)
## installation
Install using NPM `$ (sudo) npm install --global mkhere`
## Usage
#### Initiate `~/.templates` directory within your home folder containing sample templates
> Run: `mkhere init`
#### List all templates in ~/.templates
> Run: `mkhere list`
#### Create new file in current directory
> Run: `mkhere tplname.html newname`
Will create _newname.html_ based on _~/.templates/tplname.html_ in current directory
#### Create new file in different directory
> Run: `mkhere html.html ~/Desktop/sa`
Will create _sa.html_ based on _~/.templates/html.html_ on Desktop
#### Create new DOT file in current directory
> Run: `mkhere editorconfig.editorconfig ""`
Will create _.editorconfig_ dot file based on _~/.editorconfig.editorconfig_ in current directory
... and so on ...
## Auto-completion
#### In order to enable auto-completion in your `BASH` shell
Run: `mkhere --completion >> ~/.mkhere.completion.sh && echo 'source ~/.mkhere.completion.sh' >> ~/.bashrc`
#### In order to enable auto-completion in your `ZSH` shell
Run: `echo '. <(./mkhere --completion)' >> .zshrc`