basefile

Rapid terminal file creator. Save and pull files and boilerplates locally.

Usage no npm install needed!

<script type="module">
  import basefile from 'https://cdn.skypack.dev/basefile';
</script>

README

basefile.js

Rapid terminal file creator. Save and pull files and boilerplates locally.

  npm install -g basefile

Use

  --new [filename.txt] "Creates a new file if no other flags given"
  --from [basefile saved] "Used with --new, will pull from a basefile saved"
  --save [file to be saved as basefile] "Will save the file specified as a 
                                          basefile to be referenced"
  --as [name for basefile] "Used with --save to name the file to call"
  

Example

  $~/ base --new index.html 
    "Creates new file named 'index.html'"
  $~/ base --save index.html --as index
    "Creates a new basefile named 'index' with the contents of 'index.html'"
  $~/ base --new app.html --from index
    "Creates new file name 'app.html' with contents of saved 'index' basefile"